Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "RuntimeError: The current Numpy installation fails to pass a sanity check due to a bug in the windows runtime." [duplicate]

I am having a problem with running my Python programs after installing a new package. The error message that I am getting states:

RuntimeError: The current Numpy installation ("[Location of file]") fails to pass a sanity check due to a bug in the windows runtime.See this issue for more information: [URL]

I use VS code.

like image 521
Constantin Shimonenko Avatar asked Dec 13 '22 07:12

Constantin Shimonenko


2 Answers

  1. Open the command prompt.
  2. Type pip install --upgrade numpy==1.19.3

The current numpy version is having some bugs. You can use --upgrade to upgrade and downgrade packages

like image 157
Constantin Shimonenko Avatar answered Jan 03 '23 10:01

Constantin Shimonenko


This error occurs when using some Numpy versions. So uninstalling your current version and installing 1.19.3 will work.

  1. sudo pip uninstall numpy

  2. pip install --upgrade numpy==1.19.3

like image 27
Zakstack Avatar answered Jan 03 '23 09:01

Zakstack