ImportError: cannot import name 'NUMPY_MKL'

2023-05-16,,

>>> import scipy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\martin\python352\lib\site-packages\scipy\__init__.py", line 61, in <module>
from numpy._distributor_init import NUMPY_MKL # requires numpy+mkl
ImportError: cannot import name 'NUMPY_MKL'

http://stackoverflow.com/questions/37267399/importerror-cannot-import-name-numpy-mkl

因为我的python35的scipy是用下面链接中的whl安装的而numpy是用pip安装的,少了numpy+mkl,

可以从下面链接下载nump的whl下载

或者直接在__init__.py注释掉

http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

ImportError: cannot import name 'NUMPY_MKL'的相关教程结束。

《ImportError: cannot import name 'NUMPY_MKL'.doc》

下载本文的Word格式文档,以方便收藏与打印。