import torchxrayvision as xrv file ...">
菜鸟笔记
提升您的技术认知

no module named ‘pandas‘的问题及解决-ag真人游戏

项目中执行 import torchxrayvision as xrv,解决了no module named ‘skimage‘和no module named ‘tqdm‘的问题后出现以下错误:

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 11, in
    import pandas as pd
modulenotfounderror: no module named 'pandas'

既然是因为缺少pandas文件所引起的报错,那么我们就通过pip install pandas命令来安装它。 

looking in indexes: https://mirrors.aliyun.com/pypi/simple
collecting pandas
  downloading https://mirrors.aliyun.com/pypi/packages/cb/69/d2a9673f2fbb96f072c28f3bf1f3a249dc1f28395fb7dce98dfd0fe25885/pandas-1.1.0-cp37-cp37m-win_amd64.whl (9.4 mb)
     |████████████████████████████████| 9.4 mb 2.2 mb/s
requirement already satisfied: python-dateutil>=2.7.3 in d:\anaconda3\envs\pytorch_1.4_gpu\lib\site-packages (from pandas) (2.8.1)
requirement already satisfied: numpy>=1.15.4 in d:\anaconda3\envs\pytorch_1.4_gpu\lib\site-packages (from pandas) (1.19.1)
collecting pytz>=2017.2
  downloading https://mirrors.aliyun.com/pypi/packages/4f/a4/879454d49688e2fad93e59d7d4efda580b783c745fd2ec2a3adf87b0808d/pytz-2020.1-py2.py3-none-any.whl (510 kb)
     |████████████████████████████████| 510 kb 6.4 mb/s
requirement already satisfied: six>=1.5 in d:\anaconda3\envs\pytorch_1.4_gpu\lib\site-packages (from python-dateutil>=2.7.3->pandas) (1.15.0)
installing collected packages: pytz, pandas
successfully installed pandas-1.1.0 pytz-2020.1
 

问题解决。 

网站地图