numpy sanity check in Windows 2004/20H2
實驗室的新電腦到了,因此要從新配置python環境,安裝完Python後就開始跑程序了。其中須要用到numpy,安裝的最新版本1.19.4,而後運行的時候就出問題了。報錯以下:html
** 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
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
版本 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版本便可解決問題。ui
按照回答,多是由於更新了Windows 2004/20H2,因此出了問題。
QAQ:爲了這個問題,我裝了Anaconda,又是Visual Studio Code、Visual Studio 2019,又是卸載Python3.9,再裝上Python3.8,一天的時間就這樣過去了…。全部這些緣由都是https://tinyurl.com/y3dm3h86的連接打不開。而後搜了半天教程,可是沒有這樣的錯誤。原本是要用google搜了,當時也恰好上不去。嗚嗚嗚
this
同步發佈於:
語雀:https://www.yuque.com/yangtzech/blog/omkav0
google