Nanny-level installation tutorial of python in Windows system

Welcome to pay attention to the public account [Fun with python], which will take you to unlock more poses

Python is cross-platform, it can run on Windows, Mac and various Linux/Unix systems. Writing Python programs on Windows can also run on Linux. To start learning Python programming, you must first install Python on your computer. After installation, you will get a Python interpreter (which is responsible for running Python programs), a command line interactive environment, and a simple integrated development environment.

python installation

01. Download python First go to the official website of python https://www.python.org/ to download python. Python currently has two mainstream versions 2.x and 3.x. The two versions are incompatible. Because the current tutorials are also based on 3.x. It is recommended to download the 3.x version and select the corresponding version according to the number of bits (64,32) of your computer. My 64-bit download is 64-bit.

02, install python

After downloading python, double-click to open python. The following interface will appear.

 

 Install now is to install python automatically by default, and customize installation is to customize the installation location and plug-ins. The following two boxes. The first one: install python for all users, this is selected according to personal actual situation. The second one: add python to the environment variable, it is recommended to check it. Then click install now to automatically complete the installation.

Then wait for the installation to end. If the following interface appears, the installation is successful.

 

 3. Verify that the installation is successful

After the installation is complete, press the win plus R key on the keyboard, then enter cmd, and then confirm.

 

Enter python in cmd, if the following interface appears, the installation is successful. If you are prompted that python is not an executable command. It is because no environment variables are added.

 

 04 add environment variables

Right-click the computer and select Properties. Select advanced system settings in the pop-up interface. Then switch to the Advanced tab and select Environment Variables.

Find the path in the user's variables, double-click to open it, and paste the python installation path into it to confirm. At this time, open the command prompt window and enter cmd, and python related information will appear.

 

 

At this point, the installation of python is complete. You can type code happily.

Welcome to pay attention to the public account [Fun with python], which will take you to unlock more poses


Guess you like

Origin blog.51cto.com/2646213/2642985