The problem with the "sanity check" error is that the numpy version is 1.19.4. The problem with the "No module" error is that numpy is stored in a different location.
Windows10 Python3.8.3 numpy1.19.4
The error "RuntimeError: The current Numpy installation fails to pass a sanity check due to a bug in the windows runtime." Is https://stackoverflow.com/questions/64654805/how-do-you-fix-runtimeerror-package- fails-to-pass-a-sanity-check-for-numpy-an As shown in, it is solved by lowering the version.
With a command
pip install numpy==1.19.3
Then the package c:\users\owner\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages It is saved in. You can't import as it is, and you will get an error of ModuleNotFoundError: No module named'numpy'. numpy and numpy-1.19.3.dist-info folders C:\Users\owner\AppData\Local\Programs\Python\Python38\Lib\site-packages It works normally when moved to.
Confirmation code
test.py
import numpy
print(numpy.__version__)
Output result 1.19.3
2020/11/11
Recommended Posts