'No module named 'tqdm'
I am running the following pixel recurrent neural network (RNN) code using Python 3.6
import os
import logging
import numpy as np
from tqdm import trange
import tensorflow as tf
from utils import *
from network import Network
from statistic import Statistic
However, there was an error:
ModuleNotFoundError: No module named 'tqdm'
Does anyone know how to solve it?
Solution 1:[1]
You need to install tqdm module, you can do it by using python pip.
pip install tqdm
for more info tqdm
Solution 2:[2]
For Python 3 as you specified, you use the pip3
command, like so...
pip3 install tqdm
For Python 2, you use pip
command, like so...
pip install tqdm
Hope this helps!
Solution 3:[3]
or you can use conda install -c conda-forge tqdm
Sometimes help
Solution 4:[4]
In Anaconda this worked for me:
sudo <anaconda path>/bin/python3.6 -m pip install tqdm
(after your working env is activated)
On my linux machine I substituted <anaconda path>
with:
anaconda3
Ubuntu machines:
sudo /usr/bin/python3.5 -m pip install tqdm
Solution 5:[5]
In Anaconda, steps to install the package.
- Navigate to ‘Environments” and Search for your package.
- That package will be displayed and click on Apply.
Now the package is installed and it can be used right away.
Please share your feedback.
Solution 6:[6]
If you have installed it, type :
from tqdm import tqdm
at the beggining of your code
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | pushpendra chauhan |
Solution 2 | Mark A. Donohoe |
Solution 3 | ysf |
Solution 4 | |
Solution 5 | Nages |
Solution 6 | tCot |