700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > python numpy安装失败_解决python3.x安装numpy成功但import出错的问题

python numpy安装失败_解决python3.x安装numpy成功但import出错的问题

时间:2021-10-14 01:42:08

相关推荐

python numpy安装失败_解决python3.x安装numpy成功但import出错的问题

问题描述

windows错误安装方法:

pip3 install numpy

这种情况下虽然安装成功,但是在import numpy时会出现如下错误。

import numpy

** on entry to dgebal parameter number 3 had an illegal value

** on entry to dgehrd parameter number 2 had an illegal value

** on entry to dorghr dorgqr parameter number 2 had an illegal value

** on entry to dhseqr parameter number 4 had an illegal value

...

runtimeerror: the current numpy installation ('...\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime.

解决方法

查了很多资料,最后得到的结果是:

numpy==1.19.3; platform_system == “windows”

numpy==1.19.4; platform_system == “linux”

windows只能安装1.19.3,直接使用pip3 install命令安装的是最新的1.19.4版本,因此在安装时需要指定版本: 先卸载已安装版本

pip3 uninstall numpy

安装1.19.3版本

pip3 install numpy==1.19.3

到此这篇关于解决python3.x安装numpy成功但import出错的问题的文章就介绍到这了,更多相关python3.x安装numpy成功内容请搜索萬仟网以前的文章或继续浏览下面的相关文章希望大家以后多多支持萬仟网!

希望与广大网友互动??

点此进行留言吧!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。