安装(在对应的环境下) pip install freeze生成一下 pip freeze>requirements.txt 致谢: https://blog.csdn.net/qq_45175218/article/details/113729152