pip install pipreqs
pipreqs ./ --encoding=utf-8
会在当前目录下生成requirements.txt
通过pip install -r requirements.txt安装