为Python项目生成requirements

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

# 1. 安装pipreqs
pip install pipreqs

# 2. 在项目根目录,执行
pipreqs . --encoding=utf8 --force
posted @ 2021-03-04 17:55  小王点点  阅读(68)  评论(0编辑  收藏  举报