项目中执行 import torchxrayvision as xrv,解决了no module named ‘skimage‘的问题后,紧跟着出现以下错误:
traceback (most recent call last):
file "d:/研究生/毕业设计/covid19/covid19_ct/conduct.py", line 14, in
import torchxrayvision as xrv
file "d:\研究生\毕业设计\covid19\covid19_ct\torchxrayvision\__init__.py", line 1, in
from . import datasets
file "d:\研究生\毕业设计\covid19\covid19_ct\torchxrayvision\datasets.py", line 8, in
from tqdm import tqdm
modulenotfounderror: no module named 'tqdm'process finished with exit code 1
既然是因为缺少tqdm文件所引起的报错,那么我们就通过pip install tqdm
命令来安装它。
looking in indexes: https://mirrors.aliyun.com/pypi/simple
collecting tqdm
downloading https://mirrors.aliyun.com/pypi/packages/28/7e/281edb5bc3274dfb894d90f4dbacfceaca381c2435ec6187a2c6f329aed7/tqdm-4.48.2-py2.py3-none-any.whl (68 kb)
|████████████████████████████████| 68 kb 1.1 mb/s
installing collected packages: tqdm
successfully installed tqdm-4.48.2
问题解决。