第一步,在有网的电脑上配置好环境,然后导出全部第三方库的名称和版本
pip freeze > D:xxrequirements.txt
第二步,按照导出的配置文件下载本地whl包到配置文件路劲中
pip download -d D:xx -r requirements.txt
可以切换为清华源,下载速度比较快
pip download -d D:xx -r requirements.txt -i Simple Index
第三步,将该文件夹拷贝到离线电脑上,然后执行命令
pip install --no-index --find-links=D:xx -r requirements.txt