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
- 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/
- On the official website, click Downloads->All releases
- 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/
- 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
- Recommended download for 64-bit windows:Windows x86-64 executable installer
- Recommended download for 32-bit windows:Windows x86 executable installer
- Recommended download for mac computers:macOS 64-bit installer
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
- Click on the downloaded application
Here is python-3.7.9-amd64 - Check Add Python3.7 to Path in the installation interface
- 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:
- 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)
- Enter python in the command line and press Enter. If the python interactive command line as shown below appears, the installation is successful.
- Finally in the python interactive command line,
write a line of code to commemorate,
Here I want to writeprint("Welcome, commander")
,
and then press Enter
mac computer installation
- Click on the downloaded application
What we have here is python-3.7.9-macocx10.9.pkg - Introduction to the installation interface, click to continue
- Please read the installation interface first and click to continue.
- For permission to install the interface, click Continue->Agree
- Installation type of the installation interface, click Install
and then enter your password or use Touch ID to allow this operation. - Start installation and wait for a while
- 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:
- Open the mac's terminal (usually located in Launchpad->Others->Terminal)
- Enter python3 in the terminal and press Enter. If the python interactive command line as shown below appears, the installation is successful.
- Finally in the python interactive command line,
write a line of code to commemorate,
Here I want to writeprint("Welcome, commander")
,
and then press Enter