自动保存python一个项目的需求文件

# 保存python3环境下安装的所有模块
$ pip3 freeze > requirements.txt

# 保存当前项目中所依赖的模块
$ pipreqs ./

依赖模块保存在:requirements.txt

猜你喜欢

转载自www.cnblogs.com/wualin/p/10341869.html