As the saying goes: life is short, I use python. Many crawlers use python, and today, let's test whether python is really as powerful as it is said on the Internet. First, of course, install the python environment.
Installation Introduction
The process of installing python is relatively silly, just pay attention to three points:
- First, check Add python 3.6 to PATH on the starting interface;
- second, check Install for all users in the custom installation;
- Third, after the installation is successful, the end interface may appear a button of Disable path length limit, if there is one, just click on it, disable the automatic limit of the system's path length, which can give us a lot of trouble.
Download
Official website download address: https://www.python.org/downloads/ I downloaded the latest version, which is version 3.6.5.
Installation
After the download is completed, we double-click "python-3.6.5.exe" to open the installer, as shown in the figure below, we select Custom Installation, and then, check Add to Environment Variables, as shown in the figure below:
Modify the default installation directory, I modified the path to "C:\Python\Python36_32", as shown in the figure below:
Disable path length limit button,If there is one, just click on it, disable the automatic limit of the system's path length, which can save us a lot of trouble。
Check
Because, when we first installed, we checked to add py to the path, let's check, my computer-attribute-environment variable, you can see that it has been automatically added to the environment variable, as follows:
Execute the command:
|