Programming with Python under Windows

Source: Internet
Author: User
Tags win32
One, what you need to know to use Python

On Windows, there are two options for installing Python.

1. The ActiveState-made ActivePython is a Python suite for Windows that contains a complete Python release, an IDE for Python programming, and some Python windows extensions to For all services that access Windows APIs, as well as registration information for the Windows registry. Although ActivePython is not open source software, it is free to download. ActivePython is the IDE I used when I was learning python. Unless there are other reasons, I recommend that you use it. One possible reason is that activestate usually updates its installer several months after the new Python version is released. If you need the latest version of Python, and ActivePython still lags behind the latest version, you should skip directly to the second option of installing Python on Windows.
2, the second option is to use the "official" Python installer, published by Python. She is free to download open source software, and you can always get the latest version of current Python. Second, install ActivePython

The method for installing ActivePython in Windows is as follows:

1, download ActivePython from http://www.activestate.com/Products/ActivePython/. My download address is: Http://downloads.activestate.com/ActivePython/releases/2.6.4.10/ActivePython-2.6.4.10-win32-x86.msi

2. If you are using Windows 95, Windows 98, or Windows ME, you also need to download and install Windows Installer 2.0 (Http://download.microsoft before installing ActivePython. Com/download/windowsinstaller/install/2.0/w9xme/en-us/instmsia.exe).

3, double-click the installation program Activepython-2.6.4.10-win32-x86.msi.

4, follow the instructions of the installation program step-by-Step implementation.

5, if there is not enough disk space, you can perform a custom installation, do not select the document, but I do not recommend that you do so, unless you really can't squeeze 14M space to.
6. After the installation, close the installer, open the start-> program->activestate->activepython 2.2->pythonwin IDE. You will see the prompts. Third, install Python from python.org (http://www.p ython.org/)

1. Select the latest Python Windows installer from http://www.python.org/ftp/python/to download the. exe installation file. Download the address: Http://www.python.org/ftp/python/3.1/python-3.1.msi
2, double-click the installation program Python-3.1.msi. The file name depends on the Python installer file that you downloaded.

3, follow the instructions of the installation program step-by-Step implementation.

4. If there is not enough disk space, you can cancel HTMLHelp files, utility scripts (tools/), and/or test suites (lib/test/).

5, if you do not have the machine administrator rights, you can choose Advanced Options, and then choose Non-admin Install. This only affects the shortcuts that are created in the registration registry and the Start menu.

6, after the installation completes, closes installs the program, opens starts-> the program->python 2.3->idle (Python GUI). You will see a similar hint message. Iv. Summary

Follow these steps to properly install the Python development environment, you can test print ' Hello ' after different installation methods, and if you win the output Hello, the installation is successful. The question behind it is to hope that everyone is groping for themselves. I hope everyone will enter the Python world smoothly.

Note: If you download more than 3.0 Python then, if you need to output Hello world! is not simply using print ' Hello world! ' , and you need to typed print ("Hello world!"), because after 3.0, print is a built-in function, not a simple statement.

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.