Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 究竟为什么我不能将nashpy导入我的Python库?_Python 3.x - Fatal编程技术网

Python 3.x 究竟为什么我不能将nashpy导入我的Python库?

Python 3.x 究竟为什么我不能将nashpy导入我的Python库?,python-3.x,Python 3.x,我正在尝试导入nashy,但尽管已在pip安装nashy,但仍不断收到以下错误消息: 文件“G:\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\lib\site packages\scipy\\uuuu init\uuuu.py”,第61行,在 来自numpy。_分销商_init import numpy_MKL#需要numpy+MKL ImportError:无法导入名称“NUMPY_MKL” >>> 您能帮我理解吗?如果您查看导致错误的行

我正在尝试导入nashy,但尽管已在pip安装nashy,但仍不断收到以下错误消息:


文件“G:\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\lib\site packages\scipy\\uuuu init\uuuu.py”,第61行,在
来自numpy。_分销商_init import numpy_MKL#需要numpy+MKL
ImportError:无法导入名称“NUMPY_MKL”
>>> 


您能帮我理解吗?

如果您查看导致错误的行,您将看到以下内容:

File "G:\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\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'
>>> 
此行注释将依赖项声明为numpy+mkl(numpy与英特尔数学内核库)。这意味着您已经通过pip安装了numpy,但是scipy是通过预编译归档安装的,预编译归档需要numpy+mkl

通过从中的whl文件安装numpy+mkl,可以轻松解决此问题

File "G:\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\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'
>>> 
from numpy._distributor_init import NUMPY_MKL  # requires numpy+mkl