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

Viewed 7971

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.

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

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

Related