When following the Installing TensorFlow for Windows guide https://www.tensorflow.org/install/install_windows, after executing
C:\> pip3 install --upgrade tensorflow
I get the following error:
'pip3' is not recognized as an internal or external command,
It looks like pip3 isn't recognized at all (although PATH to python is set)
Run the following
python -m pip install --upgrade tensorflow
Assuming python is working, TensorFlow should get installed (at least the "Validate the installation" step is green).
This will work, if you are facing pip3 or pip is not recognized as an internal or external command issue on windows:
For e.g. I changed its value to
C:\Users\rgupta6\AppData\Local\Programs\Python\Python35\Scripts
pip3 install --upgrade tensorflow command or pip3 install tensorflow commandThat is because you haven't setup the environment variable yet.
Follow the steps by @rajesh
I had the same problem and i found his answer helpful
- Right click on This PC > Select Properties
- Select Advanced system settings on the left
- In the dialog box select Environment Variables
- In the system variables section select path and cllck on edit
- Select new and enter the path where the python scripts are..
it is mostly in C:\Users[your user name]\AppData\Local\Programs\Python\Python36\Scripts
- Then ok.. to all the boxes opened
- Close cmd if it is already open and now try installing tensorflow using pip again like this
pip3 install --upgrade tensorflow