【发布时间】:2019-03-09 03:08:03
【问题描述】:
我的是 Anaconda 5.3.0
当我在 PyCharm 2018.2.4 中运行 .py 时,为什么会显示:
ImportError:
DLL load failed: The specified module could not be found.
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 module could not be found.
PyCharm 2018.2.4 好像不能导入numpy??
有人也看到这个问题吗?如何解决?非常感谢。
【问题讨论】:
-
您是否已经决定使用 Anaconda,因为我使用 pip 来安装我的所有软件包,并且我在 PyCharm 上没有遇到任何问题,您可能想尝试一下。
-
不会想象这是特定于 PyCharm 的;如果您在 conda 环境中打开解释器并从那里导入 numpy 会发生什么?
-
你有完整的 Anaconda(因此已经安装了 numpy)?还是你手动安装的?另外,您的 pycharm 项目是使用虚拟环境还是设置为使用全局 anaconda 环境?如果它使用的是虚拟环境,那么了解 pycharm 之外会发生什么就像 fuglede 所问的那样是至关重要的
-
我通过 conda uninstall numpy、pip uninstall numpy 和 pip install numpy 解决了这个问题......再也不会使用 conda。