解决python3.x安装numpy成功但import出错的问题
问题描述
windows错误安装方法:
pip3installnumpy
这种情况下虽然安装成功,但是在importnumpy时会出现如下错误。
importnumpy
**OnentrytoDGEBALparameternumber 3hadanillegalvalue
**OnentrytoDGEHRD parameternumber 2hadanillegalvalue
**OnentrytoDORGHRDORGQRparameternumber 2hadanillegalvalue
**OnentrytoDHSEQRparameternumber 4hadanillegalvalue
...
RuntimeError:ThecurrentNumpyinstallation('...\\numpy\\__init__.py')failstopassasanitycheckduetoabuginthewindowsruntime.
解决方法
查了很多资料,最后得到的结果是:
- numpy==1.19.3;platform_system==“Windows”
- numpy==1.19.4;platform_system==“linux”
windows只能安装1.19.3,直接使用pip3install命令安装的是最新的1.19.4版本,因此在安装时需要指定版本:先卸载已安装版本
pip3uninstallnumpy
安装1.19.3版本
pip3installnumpy==1.19.3
到此这篇关于解决python3.x安装numpy成功但import出错的问题的文章就介绍到这了,更多相关python3.x安装numpy成功内容请搜索毛票票以前的文章或继续浏览下面的相关文章希望大家以后多多支持毛票票!
热门推荐
10 祝孙辈生日祝福语简短
11 恋人跨年祝福语大全简短
12 考大学敬酒简短祝福语
13 开工投产大吉祝福语 简短
14 偶然结婚祝福语朋友简短
15 感谢学长学姐祝福语简短
16 戏精的祝福语简短
17 我要结婚祝福语简短
18 婚前女儿生日祝福语简短