Home > OS >  how can I fix ModuleNotFoundError: No module named 'tqdm' after installation 'tqdm�
how can I fix ModuleNotFoundError: No module named 'tqdm' after installation 'tqdm�

Time:01-25

I have installed tqdm using pip install tqdm

but I still got an error that ModuleNotFoundError: No module named 'tqdm', how can I fix this?

my code looks like this from tqdm import tqdm

CodePudding user response:

Here are some options I can advise:

  1. Check that you have tdqm with pip show tdqm
  2. Check that you're using the correct virtual environment.
  3. You can try uninstall and then reinstall it again.

CodePudding user response:

  1. If you use a virtual environment, ensure the correct environment is activated.

  2. Also, you might need to use pip3 instead of pip, as in pip3 install tqdm.

  3. Finally, check if you have multiple versions of python installed. For Windows/Mac/Linux. If you have multiple versions of python. Delete unused versions.

  • Related