一、保存当前包和版本信息到requirments.txt中ui
pip freeze > requirements.txt
二、使用pip命令批量安装对应的包code
pip install -r requirements.txt