As seen in the title, I need some help installing NumPy using the official python IDLE. I am running Windows 10 on a Dell computer and I am not sure where to start. I have read through a very similar thread (How do I use Numpy in Python IDLE?) and have not found the help I need. Problem: In many tutorials (Including the official NumPy website), it says to enter: pip install numpy
HOWEVER... I am extremely confused as to where to put this. When I enter this into IDLE, it errors out and says, SyntaxError: invalid syntax
. Import numpy as np
doesn't work either, instead, I receive a different error: Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> import numpy as np ModuleNotFoundError: No module named 'numpy'
. Please could somebody help me from the beginning. Thank you.
You have to install numpy from Command Prompt, not IDLE.
Follow these steps on Windows:
NOTE: In case you get a message saying "pip" is not recognized, refer to: https://stackoverflow.com/a/56678271/13699502