1

Full error: RuntimeError: The current Numpy installation ('C:\Users\TomHu\PycharmProjects\pythonProject\venv\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: (a URL is here but stack overflow wouldnt allow it for some reason) I have just started using pycharm after watching a youtube video about using simple machine learning to make a chatbot (https://www.youtube.com/watch?v=1lwddP0KUEg&t=284s you dont need to watch it as its unrelated to this but just if anyone cares) and the person in that used pycharm. I found it so much easier to use than the original/official python software. But I'm new to it so perhaps there is something to do with that. My Numpy module doesn't work and I'm not sure why. Importing it returns the above error. I have researched this for hours and I have found no solution. I tried changing the Numpy version to 1.19.3 as apparently 1.19.4 doesn't function on the Windows version I have. It may have something to do with PATH but I have tried to add it to PATH but to be honest, it went straight over my head. Please someone help me. Thanks in advance.

Edit: It had installed the 19.4 version through pycharm for some reason. Installing 19.3 through pycharm works perfectly. Thanks everyone!

2 Answers2

0

Try to install numpy via Pycharm settings

settings>>>project>>>python interpreter>>>+>>>numpy>>>install package

It`ll be better to create new enviroment and install it clear, also you can install old and stable version via pycharm own terminal:

pip install numpy==[stable version]

like this

!If you install package to PyCharm with pip... use pycharm`s terminal

pycharm terminal

ytatichno
  • 14
  • 2
  • It apparently had installed the 19.4 version despite me installing it time and time gain in 19.3 with command prompt. Thank you so much – Njal_Inferno Dec 26 '20 at 16:48
0

Just reinstall NumPy. In the terminal, to uninstall NumPy

>>> pip uninstall numpy
>>> pip install numpy
Avishka Dambawinna
  • 1,180
  • 1
  • 13
  • 29