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

  1. [Right Click]Computer > Properties >Advanced System Settings > Environment Variables
  2. Click [New] under "System Variable"
  3. Variable Name: PY_HOME, Variable Value: C:\path\to\python\version. Usually Python installed to C:\PythonXX
  4. Click [OK]
  5. Locate the "Path" System variable and click [Edit]
    Add the following to the existing variable:

    %PY_HOME%;%PY_HOME%\Lib;%PY_HOME%\DLLs;%PY_HOME%\Lib\lib-tk;

  6. 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.

Install pip

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.