1

I'm getting this error when trying to run programs on PyCharm which use numpy or pygame. I have both packages installed so I'm wondering what the error could be. In the console it says:

RuntimeError: The current Numpy installation ('C:\Program Files\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:

bad_coder
  • 11,289
  • 20
  • 44
  • 72

1 Answers1

2

Which version of numpy do you have? numpy1.19.4 has some issues with Python 3.9 what you can find here. Version 1.19.5 solved the issue. You can try to update numpy to the newest version: how to do it depends on how do you manage your packages. The simplest way is to use pip:

pip install --upgrade numpy

I don't see any reports with PyGame regarding that bug. It might be solved after you update numpy. If not, you can try to update PyGame. If that fails, you can try to downgrade to Python 3.8.

tpwo
  • 484
  • 3
  • 12