openai / gpt-2

Code for the paper "Language Models are Unsupervised Multitask Learners"
https://openai.com/blog/better-language-models/
Other
22.57k stars 5.53k forks source link

ModuleNotFoundError: No module named 'tqdm' #243

Open cathhriss opened 4 years ago

cathhriss commented 4 years ago

After installing the requirements.txt with pip3 I get:

python3 download_model.py 1558M
Traceback (most recent call last):
  File "download_model.py", line 4, in <module>
    from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'

when trying to python3 download_model.py 1558Meven if I have tqdm 4.31.1 installed. I also tried uninstalling and installing the latest version of tqdm 4.46.0

Agent215 commented 4 years ago

I have the same problem.

mikolasan commented 4 years ago

@cathhriss, @Agent215 It would be good to clarify what operating system you are using, python version and if you use virtual environment. Have you tried anything from this thread https://github.com/tqdm/tqdm/issues/497 ?

bobyang9 commented 4 years ago

I had this problem (I pip3 installed tqdm but upon importing got "No module named 'tqdm'"). What solved it for me is that I went to the directory where all packages are stored, and I noticed something like this:

site-packages ---tqdm-4.48.0-py3.7.egg ------EGG_INFO ------tqdm

I moved the tqdm folder to under site-packages and the error disappeared.

site-packages ---tqdm ---tqdm-4.48.0-py3.7.egg ------EGG_INFO

Like the above poster said, don't know if you are using a virtual environment (In this case I was not). However, perhaps give it a try.