Python installation tutorial-Windows, python tutorial-windows

Source: Internet
Author: User

Python installation tutorial-Windows, python tutorial-windows

Before starting Python programming, you must first install the Python environment. You can download the Python installation package from the official Python website.

Install Python in Windows

To install Python in Windows, follow these steps:

1. Open a Web browser and visit https://www.python.org/downloads/windows /.

2. Select the desired version of the installation package. (Currently, Python 2.7 or 3.5 is recommended)

3. Download the corresponding Windows Installer file (if Python is installed on the AMD platform, select the corresponding installation file ).

4. Place the Windows Installer file anywhere on your computer, such as D: \ Software \ python-2.7.5.msi.

5. Double-click the Python installation package to open the Python Installation Wizard. If you are not familiar with the installation process or have no requirements for the installation path, you can click Next to complete the default installation. You can also customize the installation as needed. The default installation path is in the Python version folder corresponding to drive C. You can install it in the specified directory as needed.

6. After installation, add the Python running program to the system environment variable. Right-click "computer" --> "properties" --> "Advanced System settings" --> "environment variables" --> "system variables" --> "path" --> "edit" at the end add the following content: "; D: \ Python27 \ release folder (I have installed python2.7on the D Drive. Here, the python.exe file path is added ).

Suggestion:

To facilitate future management, the installation packages and directories of programs should be planned in advance.

After the installation is complete, we can find the Python program in Windows. In "start"> "All Programs"> "python2.7", we can see that there is an "IDLE (Python GUI).

With this Python IDE tool, we can perform simple Python exercises interactively. Of course, you can also press the "win + R" key to open the Command Prompt window, enter the python command and press enter, or open the Python interactive window.

Now the Python environment is installed in Windows. Of course, to facilitate development, we must use other integrated development environments to improve development efficiency. For example, PyCharm, subpme text, notepad ++, ecppse + pydev, etc. If you recharge your account on the internet, there will be a lot of resources.

The above Python installation tutorial-Windows is a small series of Content shared to everyone, I hope to give you a reference, but also hope you can support a lot of homes.

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.