python 根据项目依赖自动生成 requirements.txt

用法:

pip install -r requriements.txt

安装:

pip install pipreqs

# 项目根目录执行 pipreqs .
/

报错:

如果报编码错误 (UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 24: illegal multibyte sequence)  

可使用:pipreqs ./ --encoding=utf8

 

posted @ 2020-03-04 16:17  我超怕的  阅读(493)  评论(0编辑  收藏  举报