At times we get error in python stating that No Module named tqdm in python Or ModuleNotFoundError: No module named ‘tqdm’. tqdm is a package in python that needs to installed
It sounds like you’re trying to use the tqdm module in Python but are encountering an error indicating that it isn’t installed. tqdm is a popular library for adding progress bars to loops.
Solution for Error: No Module named tqdm in python :
To resolve this issue, you need to install the tqdm package. You can do this using pip, which is the package installer for Python. Here’s how you can install tqdm:
- Open your command prompt or Anaconda prompt
- Run the following command
pip install tqdm
This command will download and install tqdm and its dependencies.
If you are using jupyter notebook you can use the same command in the notebook itself
Verify the installation (optional):
by starting a Python interpreter or Jupyter notebook you can try to import tqdm as shown below
import tqdm print(tqdm.__version__)
this will import the tqdm package and will print its version
Output:
Note :
If you continue to have issues, make sure that pip is up to date, you can upgrade pip by running
pip install --upgrade pip
And then try installing tqdm again.