Windows System Python installation configuration

Source: Internet
Author: User
Tags python script virtualenv

Reference Address: http://docs.python-guide.org/en/latest/starting/install/win/

Install Python

First, download the latest version of Python 2.7 from the official website.

The Windows version provides an MSI-formatted installation package, which I installed here is python-2.7.8.msi. Directly double-click, the default installation can be. Python is installed to the "C:\Python27\" directory by default. Because Python installs each version to a different directory, you can install Python that runs multiple versions on a single system. This installation package does not add Python paths to the PATH environment variable, which we need to add manually.

Add the following two directories to the environment variable path:

C:\Python27\; C:\Python27\Scripts\
The first directory is the path to the Python script interpreter, and the second directory is a common path for some third-party libraries.

It can be said that Python has been installed and configured. However, for the convenience of future development and learning, it is highly recommended to install the following tools:

Setuptools and Pipsetuptools can be said to be Python's most important third-party software tool. After installing this tool, we can use a single command to automatically download and install any compatible Python software PRODUCT (awesome bar). Where can we get this big stuff? Run the following Python script: ez_setup.py. After installing the Setuptools tool, we have a new command: Easy_install. There is also a function similar to the Dongdong, Pip. It is said that this thing is better to use, Pip in addition to the ability to install a third-party package, can also uninstall, and the PIP tool is now active maintenance. Installing PIP is also as simple as running the following script: get-pip.py.
Virtualenv next installs an equally useful development tool, virtualenv. We use the PIP tool installed earlier to install VIETUALENV. Run the following command on the Windows console:
Pip Install Virtualenv
This tool is mainly used for different projects to configure different development environment, do not know how to use, it is OK, first installed, in the future development will be used. Microsoft Visual C + + Compiler for Python 2.7 downloads the VC + + compiler used by Python 2.7 from the address below. This is also an MSI package, directly double-click the installation. This compiler is needed to install some packages using PIP. In this context, the Python development environment is configured for installation.


Windows System Python installation configuration

Related Article

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.