python 找到项目使用的所有组件和版本

1、下载模块

pip3 install -i https://pypi.douban.com/simple pipreqs

2、生成文件

pipreqs ./ --encoding=utf-8