In this article I'll describe hot to set PATH variables for your Python and pip installation. I'll describe common mistakes that I've done so you could avoid it. I've take information from StackOverflow: how to set python path, how to install pip.
PATH for Python
- [Right Click]
Advanced System Settings>
- Click [New] under "
- Variable Name:
PY_HOME, Variable Value:
C:\path\to\python\version. Usually Python installed to
- Click [OK]
Locate the "Path" System variable and click [Edit]
Add the following to the existing variable:
Click [OK] to close all of the windows.
That's all. Now you can type
python in command line and you'll see python console.
It's important that you should not use additional whitespace in this path after
; symbol. If you have it nothing will work. Maybe it's obvious thing for Windows superusers, but I've got into troubles with this simple rule.
If you've got Python 2.79 or highter then you've already had pip in your python folder. To use it you should add
C:\Python27\Scripts in your path as described above.
If your version is lower, than you should use following instruction:
1. Securely download get-pip.py.
2. Run command
python get-pip.py to install. This command should be available for you, if you've configured correct path for python.
To upgrade an existing setuptools (or distribute), run
pip install -U setuptools.