# Setup questions

**URL:** <https://discuss.huggingface.co/t/setup-questions/6796>\
**Category:** Course\
**Created:** [June 14, 2021, 2:50pm UTC](https://discuss.huggingface.co/t/setup-questions/6796 "2021-06-14T14:50:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](https://discuss.huggingface.co/u/sgugger)\
**Post date:** [June 14, 2021, 2:50pm UTC](https://discuss.huggingface.co/t/setup-questions/6796/1 "2021-06-14T14:50:25Z")

</div>

Use this topic for any questions related to [Chapter 0](https://huggingface.co/course/chapter0) of the course.

---

<div class="post-metadata">

**Author:** ![akshay7](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@akshay7](https://discuss.huggingface.co/u/akshay7)\
**Post date:** [June 14, 2021, 6:25pm UTC](https://discuss.huggingface.co/t/setup-questions/6796/2 "2021-06-14T18:25:10Z")

</div>

Hi @sgugger, thank you for the course. Is it advisable to use a dockerized container as a coding environment on a windows machine? Or inside a WSL2 layer? Or does something or the other may create issues later? (Asking because I have faced a lot of issues with NCCL failure while trying to run XGboost et al on a RAPIDS installation on WSL2).

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](https://discuss.huggingface.co/u/sgugger)\
**Post date:** [June 14, 2021, 6:29pm UTC](https://discuss.huggingface.co/t/setup-questions/6796/3 "2021-06-14T18:29:54Z")

</div>

I haven’t personally tries on WSL2 but it should work pretty well as long as your GPU is recognized.

---

<div class="post-metadata">

**Author:** ![extremesarova](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/extremesarova/32/3407_2.png) [@extremesarova](https://discuss.huggingface.co/u/extremesarova)\
**Post date:** [June 14, 2021, 7:38pm UTC](https://discuss.huggingface.co/t/setup-questions/6796/4 "2021-06-14T19:38:34Z")

</div>

Hi, @sgugger!  
In order to go through the first code snippet like

```auto
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
classifier("I've been waiting for a HuggingFace course my whole life.")

```

I needed to do the next things after activating the virtual environment:

```auto
pip install ipykernel
python -m ipykernel install --user --name=.env

```

After that I was able to choose needed virtual environment in jupyter notebook and run the code without errors.  
Otherwise I’ve had only Python 3 kernel in jupyter notebook and got messages like “ModuleNotFoundError: No module named ‘transformers’” even though I went through all the setup steps and `which python` and `pip list` showed expected results (for the first I saw path to the venv python and for second I saw transformers library in the list).

Is it just me or setup chapter doesn’t cover all the steps?

P.S. I’m using Windows 10 and Python 3.8.10

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](https://discuss.huggingface.co/u/sgugger)\
**Post date:** [June 14, 2021, 8:27pm UTC](https://discuss.huggingface.co/t/setup-questions/6796/5 "2021-06-14T20:27:00Z")

</div>

The setup does not cover locally installing jupyter notebook, either you are experienced enough to do it yourself, or we recommend using colab. That’s why those instructions are not included 🙂

---

<div class="post-metadata">

**Author:** ![sj1](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sj1](https://discuss.huggingface.co/u/sj1)\
**Post date:** [June 17, 2021, 5:25pm UTC](https://discuss.huggingface.co/t/setup-questions/6796/6 "2021-06-17T17:25:14Z")

</div>

When I try running the command “_from transformers import pipeline_”  
[section 3 of chapter 1 of the course in colab](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter1/section3.ipynb), I am getting the following error:

```auto
OSError Traceback (most recent call last)
<ipython-input-2-69a9fd07ccac> in <module>()
----> 1 from transformers import pipeline

20 frames
/usr/lib/python3.7/ctypes/ __init__.py in __init__ (self, name, mode, handle, use_errno, use_last_error)
    362 
    363 if handle is None:
--> 364 self._handle = _dlopen(self._name, mode)
    365 else:
    366 self._handle = handle

OSError: /usr/local/lib/python3.7/dist-packages/torchaudio/_torchaudio.so: undefined symbol: _ZN2at6detail10noopDeleteEPv

```

Any idea how to fix it?

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](https://discuss.huggingface.co/u/sgugger)\
**Post date:** [June 17, 2021, 8:24pm UTC](https://discuss.huggingface.co/t/setup-questions/6796/7 "2021-06-17T20:24:52Z")

</div>

It comes from torchaudio, for some reason. I’ve removed that from the deps installed so if you retry to open the notebook on Colab, it should work now.

---

<div class="post-metadata">

**Author:** ![sj1](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sj1](https://discuss.huggingface.co/u/sj1)\
**Post date:** [June 18, 2021, 6:16am UTC](https://discuss.huggingface.co/t/setup-questions/6796/8 "2021-06-18T06:16:43Z")

</div>

It is working now. Thank you.

---

<div class="post-metadata">

**Author:** ![anjalichadha](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@anjalichadha](https://discuss.huggingface.co/u/anjalichadha)\
**Post date:** [July 7, 2021, 6:52am UTC](https://discuss.huggingface.co/t/setup-questions/6796/9 "2021-07-07T06:52:07Z")

</div>

Thank you for creating this course! 😊

I am going through the setup doc where it asks to install development version by running the following command.

```auto
!pip install transformers[sentencepiece]

```

Could you explain why we are passing `sentencepiece` as an extra instead of passing [“dev”](https://github.com/huggingface/transformers/blob/master/setup.py#L295) like below

```auto
!pip install transformers[dev]

```

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](https://discuss.huggingface.co/u/sgugger)\
**Post date:** [July 7, 2021, 12:15pm UTC](https://discuss.huggingface.co/t/setup-questions/6796/10 "2021-07-07T12:15:44Z")

</div>

The dev install was broken on Colab for a few days, because there were incompatible versions of torch and torchaudio, so we switch to something lighter.
