1. Installing Python27
2. Configure Environment variables
Locate the Python.exe installation folder, and copy the path (C:\python27\Arcgis10.2);
Paste the path under Control Panel \ System and security \ System \ Advanced system settings \ Environment variables \ system Variable \path.
3. Configure PIP
(1) Installation Setuptools
Download the corresponding version from the official website "Setuptools-18.0.1.zip" and unzip;
Open the cmd command side and enter the installation directory;
Enter "python setup.py install"
(2) Install Pip
Download the corresponding version from the official website "Pip-7.1.0.zip" and unzip;
Open the cmd command side and enter the installation directory;
Enter "python setup.py install";
Enter Pip, if the following interface appears, indicating that the installation was successful
(3) Configuring environment variables
Locate the next layer "scrips" of the path in step two, and copy the path (C:\python27\Arcgis10.2\Scrips);
Paste the path under Control Panel \ System and security \ System \ Advanced system settings \ Environment variables \ system Variable \path.
So far, the basic environment for Python has been configured.
Install the module (take xlrd as an example)
Open the cmd command line and enter PIP install xlrd to install
Python Basic Environment configuration