Python tour - configuration environment

1. Python environment variable configuration

(1) Use the shortcut key windows+r, enter sysdm.cpl, and press Enter to enter.

(2) Click Advanced. Select the environment variable at the bottom

 (3) Click Edit in the system environment variable.

 (4) Define a variable name python. Click to browse the file. Find the path where the software that needs to add variables is located. Then click OK to complete the configuration.

Two, PyCharm environment first use configuration

(1) Open PyCharm

 (2) Click Create New Project, the next step is the focus

 Location is the path where we store the project, you can modify the path to store the project by yourself. Click the blue triangle symbol, you can see that pycharm has automatically acquired Python 

(3) The second Location does not need to be touched, it is automatically defaulted, and the rest do not need to be clicked, and then click Create. The following interface appears, this is Pycharm in the configuration environment, waiting quietly. Finally, click close to close the prompt.

 (4) Establish a compilation environment.

(5) Add interpreter

 Click FIle, select Settings, and then select Project Interpreter, as shown in the following figure:

So far our environment configuration has been completed.

(6) For the first time use, let us create a File named Hello World.

 After writing the code, you can use the shortcut key Ctrl+Shift+10 to run the program.

Guess you like

Origin blog.csdn.net/qq_60633836/article/details/120330368