win10 安装numpy遇到的问题及解决办法

win10 安装numpy遇到的问题及解决办法

出错

The current Numpy installation () 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

下面是管用的一句话

As a workaround, you temporarily pin to NumPy 1.19.3 (pip install numpy==1.19.3) which has a fixed version of OpenBLAS that works correctly in Windows 2004/20H2. This fix broken other things (Linux, Windows-on-docker) and so could not be retained in NumPy 1.19.4.

大概就是降级到numpy1.19.3

好的,执行

首先卸载numpy1.19.4

pip uninstall numpy
pip install numpy==1.19.3
文章目录