当前位置: 代码迷 >> 综合 >> ImportError: cannot import name ‘factorial‘ from ‘scipy.misc‘ (D:\anaconda\anaconda3\lib\site-p
  详细解决方案

ImportError: cannot import name ‘factorial‘ from ‘scipy.misc‘ (D:\anaconda\anaconda3\lib\site-p

热度:52   发布时间:2023-11-24 22:44:22.0

新版的scipy不兼容,把scipy降低版本,

方法尝试

1. 在cmd中运行如下命令:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scipy==1.2.1 --upgrade

WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'd:\anaconda\anaconda3\python.exe -m pip install --upgrade pip' command.

2. pip install scipy==1.2 --upgrade

执行两遍,第一遍把原有库文件uninstall,第二遍安装1.2版本,实现downgrade

Requirement already satisfied: scipy==1.2 in d:\anaconda\anaconda3\lib\site-packages (1.2.0)
Requirement already satisfied: numpy>=1.8.2 in d:\anaconda\anaconda3\lib\site-packages (from scipy==1.2) (1.21.2)
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'd:\anaconda\anaconda3\python.exe -m pip install --upgrade pip' command.

引入?

  相关解决方案