Modulenotfounderror: No module named tqdm ( Solved )

You must have known the python package tqdm. It allows you to show the progress bars for a running code. For example in while, for loop e.t.c, you can show the progress bar to the user. But if you are getting the modulenotfounderror: no module named tqdm error then in this tutorial you will know how to solve it.

 

Why modulenotfounderror: no module named tqdm occurs

The no module named tqdm error comes when you have not installed it in your system. If you are using the terminal or command prompt and import the tqdm package then you will get the error.

import tqdm
modulenotfounderror no module named tqdm occurs error
modulenotfounderror no module named tqdm occurs error in command prompt

In the same way, if you are importing tqdm package in pycharm then you will get the red underling below the tqdm word. The python interpreter is telling you that you have not installed it in your pycharm virtual environment.

modulenotfounderror no module named tqdm occurs error in pycharm
modulenotfounderror  tqdm error in pycharm

 

 

modulenotfounderror: no module named tqdm Solution

If you are getting this error then you can solve this error easily. For this, you have to install it in your system. But before that, you have to also check the version of the python installed in your system.

Use the below bash command to get the version of the python.

python --version
Checking the Python version
Checking the Python version

If the version of the python s 3. xx then uses the pip3 command and if the version is 2. xx then use the pip command.

My system has python 3. xx version so I will use the pip3 command.

Open your terminal and type the below command to install it.

pip3 install tqtm
Installing tqdm package
Installing tqdm package

Now if you again import the package and run it then you will not get the modulenotfounderror: no module named tqdm error. Also, you will get the version of the tqtm package installed in your system.

Checking whether tqdm is installed or not
Checking whether tqdm is installed or not

You will also not get any red underline below the tqtm word in Pycharm. It clearly says that the package tqdm is installed in your system.

Not getting the red underline while importing tqdm package
Not getting the red underline while importing tqdm package

Conclusion

Tqtm package is a very useful package to show the progress bars to the users. It allows you to know how much time is remaining for the completion of a code block. If you are getting no module named tqdm error then the above method will solve this error.

 

Code The Best
Hi, I am CodeTheBest. Here you will learn the best coding tutorials on the latest technologies like a flutter, react js, python, Julia, and many more in a single place.