为Python项目生成requirements

使用pip导出当前项目依赖的包。

# 1. 安装pipreqs
pip install pipreqs

# 2. 在项目根目录,执行
pipreqs . --encoding=utf8 --force
原文地址:https://www.cnblogs.com/shayue/p/14481926.html