No module named 'tqdm'

I am running the following pixel repeating 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, an error occurred:

ModuleNotFoundError: No module named 'tqdm'

Does anyone know how to solve it?

+17
source share
5 answers

You need to install the tqdm module, you can do it with python pip.

pip install tqdm

for more information TQDM

+19
source

For Python 3, as you pointed out, you are using a command pip3like ...

pip3 install tqdm

For Python 2, you use a command piplike ...

pip install tqdm

Hope this helps!

+5
source

:

sudo <anaconda path>/bin/python3.6 -m pip install tqdm 

( env)

Linux- <anaconda path> :

anaconda3

Ubuntu:

sudo /usr/bin/python3.5 -m pip install tqdm
+3

Anaconda, .

  1. "" .
  2. This package will be displayed and click Apply.

Now the package is installed and you can use it right away.

Please share your opinion.

+1
source

or you can use conda install -c conda-forge tqdmsometimes help

0
source

Source: https://habr.com/ru/post/1689952/


All Articles