No module named ‘pydicom‘的问题及解决
项目中执行 import torchxrayvision as xrv,解决了No module named ‘skimage‘、No module named ‘tqdm‘、No module named ‘pandas‘的问题后出现以下错误:
Traceback (most recent call last):
File "D:/研究生/毕业设计/COVID19/COVID19_CT/conduct.py", line 14, in <module>
import torchxrayvision as xrv
File "D:\研究生\毕业设计\COVID19\COVID19_CT\torchxrayvision\__init__.py", line 1, in <module>
from . import datasets
File "D:\研究生\毕业设计\COVID19\COVID19_CT\torchxrayvision\datasets.py", line 13, in <module>
import pydicom
ModuleNotFoundError: No module named 'pydicom'
既然是因为缺少pydicom文件所引起的报错,那么我们就通过pip install pydicom
命令来安装它。
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting pydicom
Downloading https://mirrors.aliyun.com/pypi/packages/d3/56/342e1f8ce5afe63bf65c23d0b2c1cd5a05600caad1c211c39725d3a4cc56/pydicom-2.0.0-py3-none-any.whl (35.4 MB)
|████████████████████████████████| 35.4 MB 6.4 MB/s
Installing collected packages: pydicom
Successfully installed pydicom-2.0.0
问题解决。
相关文章
- Nginx报 No input file specified. 的问题解决之路
- 成功解决Exception “unhandled AttributeError“ module ‘cv2.cv2‘ has no attribute ‘estimateRigidTransform‘
- 成功解决AttributeError: module ‘dask.array.numpy_compat‘ has no attribute ‘take_along_axis‘
- 成功解决AttributeError : ‘GridSearchCV‘ object has no attribute ‘grid_scores_‘
- 成功解决AttributeError: module ‘numpy‘ has no attribute ‘polyld‘
- 成功解决AttributeError: module ‘dask.array.numpy_compat‘ has no attribute ‘take_along_axis‘
- 成功解决ModuleNotFoundError: No module named ‘sklearn.learning_curve‘
- 成功解决AttributeError: module tensorflow.sets has no attribute intersection
- 成功解决Module Not Found Error : No module named mglearn
- 成功解决AttributeError: 'GradientBoostingRegressor' object has no attribute 'staged_decision_function'
- 成功解决AttributeError: module 'numpy' has no attribute 'equal'
- 成功解决AttributeError: module 'tensorflow' has no attribute 'scalar_summary'
- 成功解决AttributeError: module 'tensorflow.nn.rnn_cell' has no attribute 'linear'
- 解决ModuleNotFoundError: No module named ‘cv2‘问题
- 解决ModuleNotFoundError: No module named ‘skimage‘问题
- 已解决AttributeError: module ‘pygame.time’ has no attribute ‘sleep’
- 已解决ModuleNotFoundError:No module named ‘pandas_profiling.report.presentation.flavours.html.frequency
- 已解决ModuleNotFoundError: No module named ‘requests‘
- 已解决ModuleNotFoundError: No module named ‘cv2’
- 已解决FileNoundError: [Errno 2] No such file or drectory: ‘./1.xmL‘
- 已解决(最新版selenium报错)AttributeError: module ‘selenium.webdriver‘ has no attribute ‘PhantomJS‘
- 已解决(Python3.8异常)AttributeError: module ‘time‘ has no attribute ‘clock‘
- Leetcode 520. 检测大写字母(可以,已解决)
- 解决no tracked branch的问题,并详说远程分支、远程跟踪分支和跟踪分支【本地分支】
- 编译报错:make: *** No rule to make target (例如:starg.h)解决
- 【问题解决】partially initialized module ‘cv2‘ has no attribute
- 【python 问题解决】---- ModuleNotFoundError: No module named ‘pip’