pip freeze > requirements.txt
# pip wheel -w dir -r requirements.txt
pip download -d dir -r requirements.txt
# 再将requirements.txt和dir目录拷贝到离线环境,再使用这条命令安装即可
pip install --no-index --find-links=dir -r requirements.txt
pip freeze > requirements.txt
# pip wheel -w dir -r requirements.txt
pip download -d dir -r requirements.txt
# 再将requirements.txt和dir目录拷贝到离线环境,再使用这条命令安装即可
pip install --no-index --find-links=dir -r requirements.txt