解決python3.x安裝numpy成功但import出錯(cuò)的問題
問題描述
windows錯(cuò)誤安裝方法:
pip3 install numpy
這種情況下雖然安裝成功,但是在import numpy時(shí)會(huì)出現(xiàn)如下錯(cuò)誤。
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.
解決方法
查了很多資料,最后得到的結(jié)果是:
- numpy==1.19.3; platform_system == “Windows”
- numpy==1.19.4; platform_system == “l(fā)inux”
windows只能安裝1.19.3,直接使用pip3 install命令安裝的是最新的1.19.4版本,因此在安裝時(shí)需要指定版本: 先卸載已安裝版本
pip3 uninstall numpy
安裝1.19.3版本
pip3 install numpy==1.19.3
到此這篇關(guān)于解決python3.x安裝numpy成功但import出錯(cuò)的問題的文章就介紹到這了,更多相關(guān)python3.x安裝numpy成功內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Python中pow()和math.pow()函數(shù)用法示例
這篇文章主要介紹了Python中pow()和math.pow()函數(shù)用法,結(jié)合具體實(shí)例形式分析了Python使用pow()和math.pow()函數(shù)進(jìn)行冪運(yùn)算的相關(guān)操作技巧,需要的朋友可以參考下2018-02-02
python Requsets下載開源網(wǎng)站的代碼(帶索引 數(shù)據(jù))
這篇文章主要介紹了python Requsets下載開源網(wǎng)站的代碼(帶索引 數(shù)據(jù)),本文通過實(shí)例代碼給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-04-04
pycharm執(zhí)行python時(shí),填寫參數(shù)的方法
今天小編就為大家分享一篇pycharm執(zhí)行python時(shí),填寫參數(shù)的方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧2018-10-10
詳解TensorFlow2實(shí)現(xiàn)線性回歸
這篇文章主要介紹了TensorFlow2實(shí)現(xiàn)線性回歸的詳細(xì)解析,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-09-09

