Installation method of requests library: first turn on the computer, find "Run"; then enter "cmd" in the search bar, and use the command "cd C:\WINDOW\system32" to switch directories; finally enter the command " pip install requests" to install the requests library.
The operating environment of this article: Windows 10 system, python2.7.14 version, Dell G3 computer.
Recommendation: "Python Video Tutorial"
First turn on the computer, find the leftmost icon in the bottom row, and right-click.
After finding "Run", click it with the mouse and enter "cmd" in the search bar.
You can see the current directory and use the command cd C:\WINDOW\system32 to switch directories.
After the directory switch is completed, you can see the subsequent directory changes.
Enter the command "pip install requests" below to start the installation.
#The interface shown below appears, which means the installation is successful and you can use it next.
The above is the detailed content of How to install requests library. For more information, please follow other related articles on the PHP Chinese website!