python 项目环境包的名称和版本导出和导入

1、pip freeze > requirements.txt 将当前环境中的包的名称及版本导出到文本中

2、然后在另一个环境中 pip install -r requirements.txt 安装