python离线安装包
作者:互联网
1 安装pipdeptree
pip3 install pipdeptree
2 生成依赖包列表
pipdeptree -p -f requests
3 单独创建requests目标
mkdir requests
pipdeptree -p -f requests > requests.txt
pip3 download -r requests.txt
4 打包文件
zip requests.zip requests/
5 拷贝到目标机器安装
pip install —no-index —find-links=./ -r requests.txt
标签:pip3,zip,python,离线,pipdeptree,install,requests,txt,安装包 来源: https://www.cnblogs.com/jaledi/p/16095094.html