Dashuang Python introductory tutorial 0-1 Install python

Dashuang Python introductory open course lesson plan Click to view the general catalog of tutorials

Video version of this tutorial: [Dashuang Python introductory open class] Preparation work Section 1 Installing python

1. How to find the download address and download it

The following shows the steps to find the download address
If you think the step is too slow, you can jump directly to step 4.
View the detailed download address

  1. Use the search engine to search for python
    Open the python official website in the search results, namely Welcome to Python.org
    The python official website link is:https://www.python.org/

  1. On the official website, click Downloads->All releases

  1. Look for a specific release?
    below and find the version you want and open it,
    We use version 3.7.9 here. The corresponding link is:
    https://www.python.org/downloads/release/python-379/

  1. Select the appropriate version among the Files below:

Click the link below to start downloading with your browser
If you think the browser download is slow, you can copy the link to Xunlei and use Xunlei to download

Here is a detailed explanation

  • Windows X86-64 is the 64 version, suitable for 64-bit win systems
  • Windows X86 is the 32 version, suitable for 32-bit win systems
  • The executable installer is a complete download package, which is relatively large, but it can be installed directly after downloading (can be offline)
  • The web-based installer is relatively small, but after downloading, you need to connect to the Internet to complete the installation.
  • Recommended executable installer

2. How to install

windows computer installation
  1. Click on the downloaded application
    Here is python-3.7.9-amd64
  2. Check Add Python3.7 to Path in the installation interface
  3. Click Install Now

Then wait for a while and it will be installed
The interface after installation is as follows

Click the cross in the upper right corner or Close in the lower right corner to close it directly.

Check whether the installation is successful:

  1. Press win+R to open the "Run" dialog box, enter cmd, and click OK to open the command line
    The win key is (the key between Ctrl and Alt in the lower left corner of the keyboard)

  1. Enter python in the command line and press Enter. If the python interactive command line as shown below appears, the installation is successful.

  1. Finally in the python interactive command line,
    write a line of code to commemorate,
    Here I want to write print("Welcome, commander"),
    and then press Enter

mac computer installation
  1. Click on the downloaded application
    What we have here is python-3.7.9-macocx10.9.pkg
  2. Introduction to the installation interface, click to continue

  1. Please read the installation interface first and click to continue.
  2. For permission to install the interface, click Continue->Agree
  3. Installation type of the installation interface, click Install
    and then enter your password or use Touch ID to allow this operation.
  4. Start installation and wait for a while
  5. After the installation is complete, close the installation interface

At this time, the application interface will have python IDLE and Python Launcher.

Check whether the installation is successful:

  1. Open the mac's terminal (usually located in Launchpad->Others->Terminal)


  1. Enter python3 in the terminal and press Enter. If the python interactive command line as shown below appears, the installation is successful.

  1. Finally in the python interactive command line,
    write a line of code to commemorate,
    Here I want to write print("Welcome, commander"),
    and then press Enter

Guess you like

Origin blog.csdn.net/python1639er/article/details/122629830