pip – Windows: Anaconda python is not recognized as an internal or external command on CMD
pip – Windows: Anaconda python is not recognized as an internal or external command on CMD
You probably havent added it to your environment variables, here how you do it:
-
Go to Edit the system environment variables inside of control panel (you can search for it to using the search thing).
-
Once you are there make sure you are in the advanced section.
-
Click Environment variables. In the section that says System variables search for something named Path.
-
If path is not there, simply create it by clicking New in the part that says system variables.
-
Once you got that done, select Path and click edit, now find the path that you installed Anaconda in (i.e C:UsersftakeAnaconda3) and add it to the Path.
-
Once you got that done try using the python command again and it should work.
If I was unclear about something, you can follow this as well: https://www.java.com/en/download/help/path.xml
I know its for java but it works the exact same way for python.
EDIT:
Also for pip its literally the same thing just add Scripts to the end of the path
I just spent 30 minutes on this, so Ill provide a much more detailed answer than the above…
1) Open My Computer
2) Right Click This PC
3) Select Properties
4) Select Advanced System Settings
5) Select Environment Variables
6) Under System Variables, highlight Path row
7) Select Edit
8) Select Browse
9) Navigate to Anaconda Path (Python should be there; check for python.exe at that location)
10) Restart your cmd.exe; everything should work.
pip – Windows: Anaconda python is not recognized as an internal or external command on CMD
I had my path setup properly still it didnt seem to work, later I found that I had
a partial entry of python files in the C:UsersUserAppDataLocalMicrosoftWindowsApps and my WindowsApps were in the path to, so when I ran python in it did not work.
To check where your python has been installed and has an entry,
Go to Anaconda Prompt and run
where python
it will return you the list of location, add the appropriate one