Python interpreter newbie installation tutorial

The Python interpreter itself is also a program. It interprets and executes Python code. Without it, Python code cannot be run. Since the Python interpreter is so important, let's take a look at the installation tutorial for newbies of the Python interpreter!

 

Python interpreter installation

 

Step1: Determine the operating system

The download address of the Python interpreter is: https://www.python.org/, click the "Downloads" option as shown below:

 

Python interpreter installation

 

You can see that the latest version is Python 3.8.2, then select the corresponding computer system according to your own situation, such as clicking the "Windows" option to enter the detailed download list:

 

Python interpreter installation

 

In the above figure, you can see a total of 7 download links, the first is the help document, and the remaining 6 are divided into 3 categories according to the number of operating systems. Taking a 64-bit operating system as an example, the 3 types of installation packages are described in the following figure:

 

Python interpreter installation

 

Step2: Download the offline installation package

Click "Windows x86-64 executable installer" directly to download the applicable offline installation package:

 

Python interpreter installation

 

Step3: Custom installation

After the installation package is downloaded, click "Customize installation" to perform a custom installation. The default settings are used in the pop-up box, as shown in the following figure:

Python interpreter installation

 

The specific explanations of the 5 options checked in the above figure are as follows:

 

Python interpreter installation

 

This step is mainly to install the basic functions and help documents of the Python interpreter. We only need to check all of them by default and click "Next" directly.

 

Step4: Advanced option settings

Enter the advanced options dialog box. This step is mainly used to install compilation and debugging related functions, including adding environment variables and associated Python files, etc., check as shown in the figure, and you can modify the installation path (you can set the path by yourself).

Python interpreter installation

 

Step5: Installation

Click the "Install" button to start the installation of Python. After the installation is complete, the following dialog box will appear, prompting that the installation is successful, just click "Close".

Python interpreter installation

 

Step6: Test whether Python is installed successfully

In order to verify whether it is really installed, we need to test it. Click the "Start" menu of the Windows system (the lower left corner of the screen), search for "Run", and enter "cmd" after opening.

 

Python interpreter installation

 

Click "OK" to start the command line window, enter "Python" in the window, and press the <Enter> key. If the message shown in the figure below appears, the installation is successful.

 

Python interpreter installation

 

The information in the above figure includes the installed Python version, the release time of the version, the type of installation package, etc. This information will be different due to the different versions selected. When the command prompt changes to ">>>", the installation is successful and it is waiting for the user to input Python commands.

 

This is the end of the Python interpreter installation tutorial for beginners. Is your Python interpreter installed?

After that, the plenary will share more dry goods, remember to watch it carefully, learning is a major event, so I specially established an exchange group: 606115027 to exchange and share

Guess you like

Origin blog.csdn.net/weixin_45293202/article/details/110147310