Method 1: Download a single file
PIP download pymysql to d :packages -d “d :packages” D:/packages pymysql -d :/packages pymysql -d :/packages pymysql
Method 2 Download installation packages in batches:
pip download -d D:/packages -r requirements.txt
How is requirements.txt generated? Refer to the link: www.jianshu.com/p/a46160ab3…
Where requirements. TXT is a list of packages we need to download, for example
Certifi ==2020.11.8 CharDET ==3.0.4 Filelock ==3.0.12 IDNA ==2.10 requests==2.25.0 requests-file==1.5.1 Selenium ==3.141.0 The selenium – requests the six = = = = 1.3 1.15.0 tldextract = = 3.1.0 urllib3 = = 1.26.2
After the third-party package is downloaded, run the following command to install it: 1 Install a single package:
pip install –no-index –ignore-installed –find-links=D:/packages
Method 2 Batch Installing local installation packages:
pip install –no-index –ignore-installed –find-links=D:/packages -r requirements.txt