在根目录下创建依赖文件: pip freeze > ./requirements.txt 使用依赖文件安装依赖库 pip install -r requirements.txt 注:依赖文件名可以是任何合法名称