import numpy issue in pycharm

i am working on windows 10 20H2

i installed numpy propertly in pycharm, but when i tried to import it i got this:

 

C:\Users\Michał\AppData\Local\Programs\Python\Python39\python.exe "C:/Users/Michał/PycharmProjects/lista 10/zad3.py"
Traceback (most recent call last):
File "C:\Users\Michał\PycharmProjects\lista 10\zad3.py", line 1, in <module>
import numpy
File "C:\Users\Michał\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "C:\Users\Michał\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Michał\\AppData\\Roaming\\Python\\Python39\\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

Process finished with exit code 1

0
2 comments

Hi, the error is not IDE-related. If you follow the link in the error message, you can find some workarounds there:

pip uninstall numpy
pip install numpy==1.19.3

You can do that from IDE UI as well:

2
Avatar
Permanently deleted user

Thanks it helps

0

Please sign in to leave a comment.