1.下载pipreqs pip install pipreqs
pip install pipreqs
2.进入cmd命令行,进入到项目目录的上级目录
pipreqs 项目名
pip install -r requirements.txt