Python——running environment construction

     No matter what tools are used to develop Python programs, the Python operating environment must be installed . Currently the most commonly used platforms are Windows and Linux . Here we focus on Windows 10. In fact, programming has little to do with the platform. You can also use Linux, Mac.
Building Python environment under Windows platform
    Step 1: Enter the python official website (python.org) to download the python installation package

 Step 2: Install the downloaded python.exe

Select the "Add Python 3.10 to Path" checkbox at the bottom of the interface , so that the installer will automatically add the Python path to the PATH environment variable.

Then click next

The default installation path can be changed, but it is not recommended, then click install

Sign of successful installation 

Step 3: run python
Enter cmd in the windows search command , click Enter to enter the command line window, and then enter: python; enter print("hello world"); so that the first Python program is written.

 

 Friendly reminder, if you forgot to click the "Add Python 3.10 to Path" checkbox at the bottom of the interface , you can delete it and reinstall it

Guess you like

Origin blog.csdn.net/qq_63976098/article/details/131497752