安装了pytorch,程序报错,找不到指定的模块,使用以下方式在anaconda中重新安装了一遍,就可以了。
conda install pytorch-cpu torchvision-cpu -c pytorch

numpy已经更新到最新了,但程序中仍报错

ImportError: this version of pandas is incompatible with numpy < 1.13.3
your numpy version is 1.11.3.
Please upgrade numpy to >= 1.13.3 to use this pandas version

查看一下numpy版本,发现仍是老版本,删除老版本

pycharm-导入torch出错,numpy报错

 

 pip uninstall numpy

再重新安装

pip install numpy

 

相关文章:

  • 2022-01-20
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-04-27
  • 2021-08-08
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2021-08-04
  • 2021-12-20
  • 2021-10-11
  • 2022-12-23
  • 2022-01-15
  • 2021-04-15
相关资源
相似解决方案