将djangorestframework添加到debian控件取决于

时间:2016-06-30 17:43:49

标签: django version-control debian django-rest-framework

我安装了djangorestframework。但是在我添加到debian控制文件后,错误是:

Package djangorestframework is not installed.

我的控制文件:

Depends: python, python-setuptools, djangorestframework 

有什么遗漏?

1 个答案:

答案 0 :(得分:1)

你可以运行

 pip freeze > requirements.txt

您可以打开生成的文件并检查djangorestframework == 3.3.3版本 或编辑然后

 pip install -r requirements.txt

或者,您可以使用

安装Django Rest Framework
 pip install djangorestframework==3.3.3           

如果需要,可以使用任何扩展模块:

 pip install djangorestframework-bulk==0.2.1
 pip install djangorestframework-digestauth==1.1.0
 pip install djangorestframework-extensions==0.0.3
 pip install djangorestframework-filters==0.8.0
 pip install djangorestframework-jwt==1.8.0
 pip install djangorestframework-oauth==1.1.0