解决python3.x安装numpy成功但import出错的问题
作者:不懂音乐的欣赏者 时间:2023-12-29 22:33:44
问题描述
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
来源:https://blog.csdn.net/qq_16775293/article/details/109515189
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python面向对象程序设计类的封装与继承用法示例
Linux mysql-5.6如何实现重置root密码
![](https://img.aspxhome.com/file/2023/5/82875_0s.png)
为什么JavaScript中正则表达式的test方法会出错?
在keras中实现查看其训练loss值
pygame外星人入侵小游戏超详细开发流程
![](https://img.aspxhome.com/file/2023/9/75909_0s.png)
解决python给列表里添加字典时被最后一个覆盖的问题
python数据库编程 Mysql实现通讯录
Python编程应用设计原则详解
![](https://img.aspxhome.com/file/2023/6/107076_0s.jpg)
Python3.5实现的罗马数字转换成整数功能示例
![](https://img.aspxhome.com/file/2023/0/97500_0s.png)
Python实现哲学家就餐问题实例代码
![](https://img.aspxhome.com/file/2023/0/69520_0s.jpg)
python爬取淘宝商品详情页数据
![](https://img.aspxhome.com/file/2023/0/75240_0s.png)
Reflow
pycharm2021激活码使用教程(永久激活亲测可用)
![](https://img.aspxhome.com/file/2023/9/66829_0s.png)
可用于监控 mysql Master Slave 状态的python代码
深入浅析Python代码规范性检测
![](https://img.aspxhome.com/file/2023/7/62617_0s.png)
Smarty实现页面静态化(生成HTML)的方法
openCV实现图像融合的示例代码
![](https://img.aspxhome.com/file/2023/4/110574_0s.jpg)
JS、CSS和HTML实现注册页面
![](https://img.aspxhome.com/file/2023/7/136417_0s.jpg)
Mysql双主配置的详细步骤
mysql split函数用逗号分隔的实现
![](https://img.aspxhome.com/file/2023/1/76361_0s.png)