Python Basic Environment configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.