gpt-2 icon indicating copy to clipboard operation
gpt-2 copied to clipboard

ModuleNotFoundError: No module named 'tqdm'

Open cathhriss opened this issue 4 years ago • 3 comments

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 1558M even if I have tqdm 4.31.1 installed. I also tried uninstalling and installing the latest version of tqdm 4.46.0

cathhriss avatar May 12 '20 15:05 cathhriss

I have the same problem.

Agent215 avatar Aug 19 '20 00:08 Agent215

@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 ?

mikolasan avatar Aug 23 '20 00:08 mikolasan

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.

bobyang9 avatar Sep 08 '20 18:09 bobyang9