几天前,我从我的电脑上卸载了 anaconda。我只是想写一些代码,我收到了这个错误信息。我多次重新安装 Python,不同版本,删除了所有相关文件,但我仍然收到此消息。首先它是一个ModuleNotFound
错误,在我安装它之后pip
我得到这个错误。
>>> import numpy as np
** 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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\username\\AppData\\Local\\Programs\\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: tinyurl.com/y3dm3h86
如果我打印出我的路径,它会显示以下内容:
['', 'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python39\\python39.zip', 'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python39\\DLLs', 'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python39', 'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages']
但是当我检查我的实际系统变量时,它只包含:
%AppData%/Local/Programs/Python/Python39/Scripts/
%AppData%/Local/Programs/Python/Python39/
我应该怎么