django 6 1.10.0 no module named http_client 错误

django six 1.10.0 no module named http_client error

我正在使用 Django 1.5.5 进行开发,我最近安装了 django-rest-framework 和 django-rest-auth。我必须将我的六个安装从 1.6.0 升级到 >1.9.0 才能使其正常工作,但现在我收到此错误:

Request Method:     GET
Request URL:    http://192.168.1.230:8080/
Django Version:     1.5.5
Exception Type:     ImportError
Exception Value:    

No module named http_client

Exception Location:     /home/XXXX/www/PROJECT/buildout/eggs/djangorestframework-3.2.4-py2.7.egg/rest_framework/response.py in <module>, line 11
Python Executable:  /home/XXXX/www/PROJECT/buildout/bin/python
Python Version:     2.7.6

目前,Rest Framework requires Django 1.5.6+

不是您安装的 six 太旧,而是 Django 包含的 six 版本 django.utils.six