-3

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!

RtHAitP30D
  • 306
  • 3
  • 6
  • 19
  • 1
    https://stackoverflow.com/search?q=%5Bpip%5D+is+Not+Recognized+as+an+Internal+or+External+Command – phd Jun 24 '20 at 16:15

5 Answers5

3

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. enter image description here

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.

Edwin Cruz
  • 507
  • 3
  • 10
2

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

joll05
  • 420
  • 5
  • 9
0

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.

Red
  • 26,798
  • 7
  • 36
  • 58
0

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.

-1

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