Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named tqdm after a pip install

I'm trying to use tqdm as following:

from tqdm import tqdm

it tells me: " No module named tqdm "

i installed it with:

pip install tqdm

It has been installed successfully but i still have the same message: " No Module named tqdm ".

like image 387
Mohamed Mahdi Avatar asked Oct 23 '25 09:10

Mohamed Mahdi


2 Answers

I see that you've got this tagged as python 3. Could be your system's default installation of python is version 2.

Try sudo pip3 install tqdm.

Make sure you're running your script in version 3. python3 ./example.py

like image 79
Ryan Kozak Avatar answered Oct 27 '25 01:10

Ryan Kozak


make sure you are not executing your .py file in a virtual environment.

If you are, all you have to do is activate the virtual environment and install it there.

change directory to where you have installed your virtual environment

cd .../bin

# this activates virtual environment
source activate

then

#install through pip
pip install tqdm
like image 42
hyukkyulee Avatar answered Oct 26 '25 23:10

hyukkyulee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!