Python learning: Quickly build a python environment

Source: Internet
Author: User

First, install Python

Now Python has two larger version one is python3.x one is python2.x,python3.x equivalent to python2.x is a relatively large upgrade, but python3.x is not backward compatible, so some original python2.x version of the code can not be Pyth on3.x, so there are want to learn what version of Python, install the appropriate Python environment, if it is just contact with Python, it is recommended to learn python3.6, we will learn in the future directly in the python3.6 version of the study, the system environment is windows.

1, open Python official website download python, official website : https://www.python.org/getit/

2. After entering the page, for example, click Download python 3.6.5 to download version 3.6 of Python.

3. Run the installation package after the download is complete

Run the installation package appears the following interface, in this interface we need to tick an option is the image below the black box option , tick this option, we do not have to manually add the environment variable after the installation of Python, the installation of the time since Add the environment variable , then we click Install now to start the installation, until the end of the installation is complete.

Second, verify whether the installation is successful

1. In the beginning, locate the command prompt or use the run shortcut (the win key on the keyboard, plus r) to enter CMD in the run to enter the command prompt.

2, enter Python at the command prompt, if the following interface is the Python environment installation is successful.

3. Test each of our first steps in learning a programming language and use Python code to play a ' Hello World '.

Here we use the Windows system under the python3.6.5 environment installed, if there is a need to install python2.x version of the classmate, or want to be in Linux, Mac system can comment, I will give you the quickest solution, follow-up will also be related installation tutorials, This is the end of today's Python environment installation.

Python learning: Quickly build a python environment

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.