Python 3.6中的numpy:导入多阵列numpy扩展模块失败

时间:2017-06-21 10:20:38

标签: python numpy python-3.6

任何人都可以帮我解决这个错误吗?我没有任何旧版本的numpy,我使用pip安装它,我得到1.13.0版本的numpy,我在Windows 10操作系统上工作。有什么建议吗?

Traceback (most recent call last):
  File "C:/Users/Asus/PycharmProjects/g/num.py", line 1, in <module>
    import numpy
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\__init__.py", line 142, in <module>
    from . import add_newdocs
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
    from .type_check import *
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\core\__init__.py", line 26, in <module>
    raise ImportError(msg)
ImportError: 
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

原始错误是:DLL加载失败:找不到指定的过程。

1 个答案:

答案 0 :(得分:3)

显然,你是issue 9272的受害者。 numpy是针对Python 3.6.1构建的,但您使用的是Python 3.6.0

根据那里的讨论,您应该升级到Python 3.6.1以使其工作。看起来它们似乎也会建立在3.6.0之上,但是,请按照这个问题来跟踪它。