- 下载工具包
pip install pipreqs
- 生成requirements.txt
pipreqs ./
- 报UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x80 in position 243: illegal multibyte sequence错的话,用下面的命令生成requirements.txt
pipreqs ./ --encoding=utf-8 --force
pip install pipreqs
pipreqs ./
pipreqs ./ --encoding=utf-8 --force