首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PyCharm中的Numpy导入错误(导入多数组numpy扩展模块失败)

PyCharm中的Numpy导入错误(导入多数组numpy扩展模块失败)
EN

Stack Overflow用户
提问于 2018-10-10 19:09:27
回答 2查看 2.8K关注 0票数 1

我已经愉快地使用了一段时间的PyCharm专业版。在重新安装miniconda和PyCharm之后,在任何conda环境中导入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 module could not be found.

python解释器设置正确(并打印在PyCharm控制台的顶部)。在PyCharm之外,导入numpy工作得很好。

有没有人知道为什么现在会发生这种情况?

在Windows10上,Python3.7和numpy 1.15.2以及PyCharm专业版2018.2.4。

谢谢!

EN

回答 2

Stack Overflow用户

发布于 2018-10-10 19:26:00

这很可能是兼容性问题,请尝试以下方法:

代码语言:javascript
复制
pip uninstall numpy
pip install numpy --upgrade
票数 1
EN

Stack Overflow用户

发布于 2018-10-10 20:08:28

您正在从未激活的环境启动pycharm,这是不受支持的。您可能还没有将miniconda添加到路径中。我也有同样的问题。您有两个选择:您可以在安装中重新安装miniconda并"Add to path“(conda不推荐这样做),或者从miniconda提示符下启动pycharm,在其中您激活了您的环境。这个问题的详细解决方案可以在这里找到:https://github.com/conda/conda/issues/7833

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52738880

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档