python脚本如何打包迁移到另一个环境
pip freeze > requirements.txt
pip install wheel
pip wheel -r requirements.txt -w ./packages
# 机器B上
pip install --no-index --find-links=./packages -r requirements.txt
或者运行
install_requirements.py
pip freeze > requirements.txt
pip install wheel
pip wheel -r requirements.txt -w ./packages
# 机器B上
pip install --no-index --find-links=./packages -r requirements.txt
或者运行
install_requirements.py