python项目模块导出

1
2
3
4
5
1 在虚拟环境中直接导出
pip3 freeze >requirements.txt
2 系统环境装了很多模块,只导出当前项目依赖的模块
-pip3 install pipreqs
-pipreqs ./ --encoding=utf8