Windows:
To install Python first, make sure to add the python.exe below the Python installation directory to the environment variable. Click on the environment variable, click Path, and then click OK with our Python installation path.
1). Install Easy_install First
: Https://pypi.python.org/pypi/ez_setup
Unzip, install. Will add Easy_install.exe and several exe files under D:\Python2.7.8\Scripts. The CD is executed under this directory:
Python ez_setup.py
The installation is successful Easy_install
2). Install Easy_install before installing PIP.
CD index to the place where Easy_install.exe is located, execute the instruction "Easy_install.exe pip" to install PIP.
or download the installation package directly to install:
: Https://pypi.python.org/pypi/pip
Unzip, install.
Python setup.py Install
PS: After installation, we enter PIP directly on the command line, and if the display ' Pip ' is not an internal command, you need to add an environment variable for it.
Another: After installing the PIP and Easy_installer tools, it is convenient to install the other Python libraries later
For example:
Easy_install Redis
Or
Pip install Redis (recommended)
Linux:
Linux default installed Python.
$pip
If PIP is not installed
$sudo Apt-get Install Python-pip
Python pip Install