【发布时间】:2017-01-24 09:57:34
【问题描述】:
我已经使用pip install djangorestframework 安装了 django rest 框架。通过以下方式运行 Django 的开发服务器时:
python3 manage.py runserver
我遇到以下错误:
ImportError at / No module named 'django.utils.six.moves.http_client';
'django.utils.six.moves' is not a package
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.5
Exception Type: ImportError
Exception Value: No module named 'django.utils.six.moves.http_client';
'django.utils.six.moves' is not a package Exception Location:
/home/sony/environments/djangular/lib/python3.4/site-packages/rest_framework/response.py in <module>,
line 11 Python Executable:
/home/sony/environments/djangular/bin/python3
Python Version: 3.4.3
Python Path: ['/home/sony/environments/djangular/djangular',
'/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/usr/lib/python3.4/lib-dynload',
'/home/sony/environments/djangular/lib/python3.4/site-packages']
【问题讨论】:
标签: python django python-3.x django-models importerror