导入numpy包时出错

2024-09-30 18:34:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我在python3.6中成功地安装了numpy包,但是当我尝试导入numpy时,出现了错误。请参阅所附图片:Link to Image

我该怎么办? 我有Windows10(64位)。你知道吗


Tags: toimagenumpy错误link请参阅windows10附图片
2条回答

将numpy版本降级到1.12,较新的版本在Win10上可能会损坏,请检查this以获取更多信息,或者尝试升级python版本。你知道吗

当您使用Python3.6时(根据您的屏幕截图),this comment on the official numpy release应该与您相关(因为这正是您的pip install numpy正在获取的版本),尽管这不是我有多少经验,因为我正在使用anaconda(推荐!)只是。你知道吗

Note that the Python 3.6 wheels available from PIP are built against 3.6.1, hence will not work when used with 3.6.0 due to Python bug 29943_. NumPy 1.13.2 will be released shortly after Python 3.6.2 is out to fix that problem. If you are using 3.6.0 the workaround is to upgrade to 3.6.1 or use an earlier Python version.

(我的粗体注解)

相关问题 更多 >