Matplotlib/NumPy ― RuntimeError: The current Numpy installation fails to pass a sanity check due to a bug in the windows runtime

I am unable to import neither Matplotlib nor NumPy on Pycharm. Currently using Python 3.8, NumPy version 1.19.3.

Whenever I write the lines:

import matplotlib

Or:

import numpy

I get an error like this:

Traceback (most recent call last):
  File "[PATH]", line 1, in <module>
    import matplotlib
  File "[PATH]\lib\site-packages\matplotlib\__init__.py", line 107, in <module>
    from . import cbook, rcsetup
  File "[PATH]\lib\site-packages\matplotlib\cbook\__init__.py", line 28, in <module>
    import numpy as np
  File "[PATH]\lib\site-packages\numpy\__init__.py", line 305, in <module>
    _win_os_check()
  File "[PATH]\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
    raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('[PATH]\\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://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html

I have seen and tried using all the answers given here:

How do you fix "runtimeError: package fails to pass a sanity check" for numpy and pandas?

As well as here:

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

However, none of these work.



from Recent Questions - Stack Overflow https://ift.tt/39bj1Lc
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)