1 从已有项目中提取依赖,生成requirements.txt
# 安装pipreqs
pip install pipreqs
# 生成requirements.txt
pipreqs ./ --encoding=utf-8
2 根据requirements.txt自动安装依赖库
pip install -r requirements.txt
1 从已有项目中提取依赖,生成requirements.txt
# 安装pipreqs
pip install pipreqs
# 生成requirements.txt
pipreqs ./ --encoding=utf-8
2 根据requirements.txt自动安装依赖库
pip install -r requirements.txt