Im trying to import numpy as np
(im using VS2019 as the IDE) and I get the error "No module names 'numpy'"
. So I tried going to the windows cmd and did pip install numpy
and I get the error: "'Pip' is Not Recognized as an Internal or External Command."
I tried watching this video, and have located my Python3 folder (I cant find Python27), but there is no pip.exe
file in there, so now I don't know what to do. Any help would be much appreciated!

- 306
- 3
- 6
- 19
-
1https://stackoverflow.com/search?q=%5Bpip%5D+is+Not+Recognized+as+an+Internal+or+External+Command – phd Jun 24 '20 at 16:15
5 Answers
My guess is that you accidentally did not add Python to your PATH. Below is a screenshot of the Python3 installation where there is a checkbox to add it to your PATH.
To check if python is added to your PATH run the following command echo %PATH%. If it is not follow this tutorial to add it to your path.

- 507
- 3
- 10
As long as you can run python in cmd you should be able to run python3 -m pip install numpy
.

- 420
- 5
- 9
If you didn't add pip
to your system variables, you need to cd
to the location of your pip.exe
in order to use it.
You should be able to find it in a folder called Scripts
.

- 26,798
- 7
- 36
- 58
On of my friends had the same problem. We simply reinstalled python on his Windows 10 laptop and we paid attention to add python to PATH and select an option to install pip with python. This worked pretty much, I think the python Win10 installer is sometimes a little bit to complicated on Win10.

- 36
- 4
First check if pip is already installed by running this command
pip - - version
If it is installed then change the os path and if not check if python is correctly installed or not by running this command
python - - version
If python is installed then try this command
python get-pip.py

- 1
- 2
-
You can format code by selecting it and pressing Ctrl+K so it stands out from the rest of the text. – Ronald Jun 24 '20 at 16:13
-