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