python3 django项目从项目中导出依赖包

1. 在项目的根目录中使用mac终端执行命令,

pip3 freeze > requirements.txt  #requirements.txt只是个名字可以随便起,一般默认为requirements.txt

会在项目的根目录中得到一个 requirements.txt 文件

记录着所有的依赖包。

猜你喜欢

转载自www.cnblogs.com/chongdongxiaoyu/p/11387940.html