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

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

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

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

记录着所有的依赖包。

2.导入依赖包 

pip3 install -r requirements.txt  #然后在通过以下命令安装,要cd到requirements.txt目录下执行下边操作
原文地址:https://www.cnblogs.com/chongdongxiaoyu/p/11387940.html