这是我得到的错误,据我所知,错误链接上没有任何有用的东西可以解决这个问题。
RuntimeError: The current Numpy installation (
'...\\venv\\lib\\site-packages\\numpy\\__init__.py'
) fails to pass a sanity check due to a bug in the windows runtime.
有关更多信息,请参阅此问题:https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html
我尝试了多个版本的 Python(3.8.6 和 3.9.0)以及 numpy 和 pandas。我目前正在使用 PyCharm 来完成这一切。
最佳答案
使用python3.9和numpy1.19.4时出现这个错误
所以卸载 numpy1.19.4 并安装 1.19.3 就可以了。
编辑
截至 2021 年 1 月 5 日,numpy 版本 1.19.5
出来了,似乎解决了问题。
关于python - 你如何为 numpy 和 Pandas 修复 "runtimeError: package fails to pass a sanity check"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64654805/