【解决错误】ModuleNotFoundError: No module named ‘progress‘
错误描述
Traceback (most recent call last):
File "imagenet_0920.py", line 27,in<module>from utils import Bar, Logger, AverageMeter, accuracy, mkdir_p, savefig
File "/home/project/mobilenetv2.pytorch/utils/__init__.py", line 11,in<module>from progress.bar import Bar as Bar
ModuleNotFoundError: No module named 'progress'
[root@No /home/project/mobilenetv2.pytorch]$ pip install progress -i https://pypi.douban.com/simple/
Looking in indexes: https://pypi.douban.com/simple/
Collecting progress
Downloading https://pypi.doubanio.com/packages/2a/68/d8412d1e0d70edf9791cbac5426dc859f4649afc22f2abbeb0d947cf70fd/progress-1.6.tar.gz (7.8 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: progress
Building wheel for progress (setup.py) ... done
Created wheel for progress: filename=progress-1.6-py3-none-any.whl size=9632 sha256=a9f0038a90fc493f13e478f6a96e502c5b0f80cd6f094322a2f8cd41f533fbcf
Stored in directory: /root/.cache/pip/wheels/0b/45/e7/9fb306145ac5f08bb1b2d5eea62df1dfbbf5a9879c8620943b
Successfully built progress
Installing collected packages: progress
Successfully installed progress-1.6
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv