numpy sanity check in Windows 2004/20H2
實驗室的新電腦到了,所以要重新配置python環境,安裝完Python后就開始跑程式了,其中需要用到numpy,安裝的最新版本1.19.4,然后運行的時候就出問題了,報錯如下:
** 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
File "c:\Users\Public\OneDrive\桌面\LateralControl\path-following-control\examples\pure_pursuit_control.py", line 5, in <module>
from model import particle
File "c:/Users/Public/OneDrive/桌面/LateralControl/path-following-control/examples/..\model\particle.py", line 1, in <module>
import numpy as np
File "D:\ProgramData\Python\Python39\lib\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('D:\\ProgramData\\Python\\Python39\\lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86
Python版本如下:
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Windows版本如下:
版本 Windows 10 家庭中文版
版本號 20H2
安裝日期 ?2020/?11/?2
作業系統版本 19042.610
序列號 S101APL1
體驗 Windows Feature Experience Pack 120.2212.31.0
早上打不開報錯里面的鏈接https://tinyurl.com/y3dm3h86,下午又打開了,跳轉到https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html,按照里面的回答https://developercommunity.visualstudio.com/users/290300/3616d928-e552-6c3c-a305-d773da8af52d.html,使用pip install numpy==1.19.3將numpy降到1.9.3版本即可解決問題,
按斬訓答,可能是因為更新了Windows 2004/20H2,所以出了問題,
QAQ:為了這個問題,我裝了Anaconda,又是Visual Studio Code、Visual Studio 2019,又是卸載Python3.9,再裝上Python3.8,一天的時間就這樣過去了…,所有這些原因都是https://tinyurl.com/y3dm3h86的鏈接打不開,然后搜了半天教程,但是沒有這樣的錯誤,本來是要用google搜了,當時也剛好上不去,嗚嗚嗚
同步發布于:
語雀:https://www.yuque.com/yangtzech/blog/omkav0
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/204973.html
標籤:其他
