Python 快速部署安装所需模块

需求

我们需要在拷给别人或者提交至服务器也用同样的模块,好保持和开发的一样,所以我们需要自己手动写配置模块信息。

方法

在根目录下创建一个

requirements.txt  文件

里面写

模块名==版本

如下:

Django==1.10.1
django-model-utils==2.6
djangorestframework==3.4.7
djangorestframework-csv==1.4.1
mysqlclient==1.3.7
six==1.10.0
xlrd==1.0.0
xlwt==1.2.0

From Hairui 转载请注明出处!谢谢
原文地址:https://www.cnblogs.com/hairuipython/p/7053718.html