r/pythonhelp • u/scrubdumpster • Jul 06 '20
Create Python PATH
Hi - I'm trying to do pip installs, but I get errors saying "is not a recognized as an internal or external command", so I tried following the guide below, but after creating the PATH and typing "Python" in the CMD, I still get "Python is not recognized as an internal or external command, operable program or batch file.
https://projects.raspberrypi.org/en/projects/using-pip-on-windows/4
I installed python from https://www.python.org/downloads/
Also, I'm not sure if this has an effect or not, but I do already have Anaconda installed on my computer, but I need to use PyCharm, which is why I'm trying to "reinstall" Python.
1
u/Chaney08 Jul 06 '20
Hey so it seems like the PATH has not been set correctly after all, seems like the most likely explanation.
What is your PATH variable and where is your Python installed?
2
u/scrubdumpster Jul 06 '20
Thanks for the info. I ended up using the Anaconda Prompt to install the packages (I didn't know that you could use Anaconda Interpreter with PyCharm) and it seems to be working smoothly.
1
u/Chaney08 Jul 06 '20
Cool, glad you got it working :) But its always good to know how to solve these issues haha
2
u/pdepmcp Jul 06 '20
open a console (cmd) and type
paththis will return the actual path that that console uses.
Search for the path where you installed python. If it's not there, search for how to modify path in your os version (windows likes to move things around).
Once you did it, remember that consoles DO NOT read the path when you change it, so you'll have to, at least, open a new one.
This should solve the path issue. Then try again with pip, but consider that pip may need to be installed as well if you work with old python versions <3.4) before you get all the chain working.