PIP3
# 所有依赖库导成txt pip3 freeze>requirements.txt # 下载依赖到packages文件夹下 download -d packages -r requirements.txt --trusted-host mirrors.cloud.aliyuncs.com # 将packages拷贝到离线环境,直接安装对应的*.whl文件即可。 pip3 install *.whl
yum
# 将安装包默认下载到指定目录下 yum install --downloadonly --downloaddir=/root/mypackages/ vim
标签:packages,requirements,安装文件,--,离线,txt From: https://www.cnblogs.com/edeny/p/16598302.html