Use Python programming in Windows

Source: Internet
Author: User
ArticleDirectory
    • I. What you need to know when using Python
    • Ii. Install activepython
    • 3. Install python from python.org (http: // www. P ython.org /)
    • Iv. Summary
I. What you need to know when using Python

There are two options for installing python on Windows.

1. activepython made by ActiveState is a python kit for windows. It contains a complete Python release, an IDE for python programming, and some windows extensions for python, provides all services for accessing windows APIs and registration information for the Windows registry. Although activepython is not an open source software, it can be freely downloaded. Activepython is the ide I used when learning python. Unless for other reasons, we recommend that you use it. One possible reason is that ActiveState is usually installed several months after the new Python version is released.Program. If you need the latest version of Python, and activepython is still behind the latest version, you should directly jump to the second option to install python on Windows.
2. The second option is to use the "official" Python installation program released by python. She is an open-source software that can be freely downloaded, and you can always get the latest version of Python.

Ii. Install activepython

To install activepython in windows, follow these steps:

1. Download activepython from the http://www.activestate.com/Products/ActivePython. My: 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.com/download/WindowsInstaller/Install/2.0/W9XMe/EN-US/InstMsiA.exe) before installing activepython ).

3. Double-click the installerActivePython-2.6.4.10-win32-x86.msi.

4. Step by step according to the prompts of the installation program.

5. If the disk space is insufficient, you can perform customized installation without selecting documents. However, we do not recommend that you do this unless you are unable to squeeze 14 MB of space.
6. After installation, close the installer and choose Start> program> ActiveState> activepython 2.2> pythonwin IDE. You will see the prompt.

3. Install python from python.org (http: // www. P ython.org /)

1. Select the latest Python Windows Installer from the http://www.python.org/ftp/python/ and download the. exe Installation File. For: http://www.python.org/ftp/python/3.1/python-3.1.msi
2. Double-click the installerPython-3.1.msi. The file name depends on the python installer file you downloaded.

3. Step by step according to the prompts of the installation program.

4. If the disk space is insufficient, you can cancel the htmlhelp file, utility script (tools/), and/or test suite (LIB/test /).

5. If you do not have the Administrator permission for the machine, you can select advanced options and choose non-Admin install. This will only affect the Registry registration and the shortcut created in the Start Menu.

6. After the installation is complete, close the installer and choose Start> program> Python 2.3> idle (Python GUI ). You will see a similar prompt.

Iv. Summary

Follow these steps to correctly install the python development environment. You can test print 'hello' after different installation methods. If you try to output hello, the installation is successful. The problem that follows is that we hope everyone will find it by themselves. We hope everyone can smoothly enter the world of Python.

NOTE: If Python version 3.0 or later is downloaded, if you need to output Hello world! It is not simple to use print 'Hello world! ', But you need to input print ("Hello world! "), Because after version 3.0 or later, 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.