【发布时间】:2017-07-25 17:48:56
【问题描述】:
我一直在尝试使用 numpy 和需要 numpy 的库,但是在运行我的代码时总是遇到同样的错误。但是,代码本身没有错误。错误:
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.
Original error was: DLL load failed: The specified procedure could not be
found.
我确实安装了 numpy。我有运行 python 3.6 的 Windows 10 64 位。这个错误是什么意思,我该如何解决?我已经卸载,重新安装,并做了很多其他的事情,但无济于事。我用 pip 安装
【问题讨论】:
-
你是如何获得numpy的?你
pip install了吗?您是否获得了诸如 WinPython 或 Anaconda 之类的 Python 套件? -
我安装了 PIP
-
您可以完全卸载Python,然后从官网获取安装程序。这将为您安装带有 stdlib 的标准原始 Python。 Make sure to install
pip。使用pip安装 NumPy。 -
对于 Windows,请查看 lfd.uci.edu/~gohlke/pythonlibs
标签: python python-3.x numpy