发布于2023年2月2日生成python项目需要的最小requirements.txt文件 命令行进到项目根目录运行:pipreqs ./ –encoding=utf-8 然后就会看到这个项目所有以来环境的requirements.txt了