Open the specified directory
C:\Users\username\AppData\Roaming
Then create a pip folder under this folder
In the pip folder, create a pip text file pip.txt
And modify the suffix, change pip.txt to pip.ini
Open pip.ini and enter in the file
[global]
index-url = http://pypi.douban.com/simple/
[install]
trusted-host = pypi.douban.com
Close after saving the file. At this time, reopen cmd, you can download and install the third-party library from the domestic Douban source!