DEV Community

villival
villival

Posted on

HOW TO FIX RUNTIME ERROR

HOW TO FIX THIS RUNTIME ERRRO
RuntimeError: The current Numpy installation ('c:\users\anil\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: https://tinyurl.com/y3dm3h86

Top comments (3)

Collapse
 
fronkan profile image
Fredrik Sjöstrand • Edited

So this is caused by Windows bug. A work around is to install numpy 1.19.3 instead of the latest version (1.19.4). However, I think the 1.19.3 version of numpy breaks on Linux. If you just running on windows 1.19.3 will work until Windows release a fix.

Collapse
 
villival profile image
villival

pip install numpy==1.20.0rc1 -U
this worked for me ...

Collapse
 
fronkan profile image
Fredrik Sjöstrand

Thanks for the tip!
They might have included a work around I suppose.