Python报错(Anaconda或者PyCharm): RuntimeError: The current Numpy installation (‘D:\Develop\anaconda\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
错误信息
RuntimeError: The current Numpy installation (‘D:\Develop\anaconda\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
解决办法:
在anaconda
的prompt
命令行窗口下运行:
pip install numpy==1.19.3
成功。
如果在PyCharm中出现同样的报错:
那就在File
– Setting
– Project
(就是当前的Project)中,修改Python Interpreter
,点击+号,搜索numpy
,但是注意这里的版本后需要修改一下。
修改成1.19.3
即可。
又成功了!