In Windows 7 environment, the Python 2.6.6 is installed

Source: Internet
Author: User
Tags windows x86

Currently the most stable version of Python is 2.7.3 and 3.2.3, because 2.x is not fully compatible with 3.x, and there are some differences between versions, so the suggestion is also the version of the respective installation required ...

Aixiak work environment is using 2.6 version, currently available in the official website of Windows Installer only to 2.6.6, while on other platforms there is provided to the 2.6.8 source code or kit available for editing ...

If you want to know the main difference between 2.x and 3.x, you can refer to "should I use Python 2 or Python 3 for my development activity?" Detailed content

1. First download the binary installer that has been compiled for editing:

http://www.python.org/download/releases/

Enter 2.6.8 with the following instructions to provide a download page for installer 2.6.6:

http://www.python.org/download/releases/2.6.6/

According to x86 or x64

Windows x86 MSI Installer (2.6.6) or Windows x86-64 msi Installer (2.6.6)

2. Install Python 2.6.6:

After downloading the Python-2.6.6.msi, you can install it by using the preset settings.

3. Setting the Environment variables:

As with the Java SDK, the Python installation must also set the environment variables to let the system know about the runtime and the Lib path ...

To Control panel–> system and security–> system–> Advanced system settings–> advanced–> environment Var Iables

The following two system changes are added to the system Variables:

python_home :C:\Python26\

PATH: %python_home% (appended to the present content)

4. Tests:

After entering Command line, enter Python to see the following screen, which means the installation is successful ...

Enter print ' Hello world ' to execute your first Python application ... ^^

(Use the single-cited ' or "folder to indicate string values)

5. Annotations:

The same computer environment, you can mix and install Python 2.6, 2.7, 3.0, 3.1, 3.2, basically the way the installation is the same ...

Installed in the opposite path, for example:

Python 2.6:c:\python26

Python 2.7:c:\python27

Python 3.2:c:\python32

The environment can only use one version, the path of the main version of the application is set ...

In Windows 7 environment, the Python 2.6.6 is installed

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.