ModuleNotFoundError: No module named 'django.utils.six' [duplicate]

ぐ巨炮叔叔 提交于 2021-01-26 04:43:08

问题


HTTP GET /admin/ 500 [0.00, 127.0.0.1:51425] Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\daphne\http_protocol.py", line 180, in process "server": self.server_addr, ModuleNotFoundError: No module named 'django.utils.six'

Installed Django 3. Django.utils.six is no longer supported. Thoughts?


回答1:


Django 3 has removed support for six, from the release notes:

While Python 2 support was removed in Django 2.0, some private APIs weren’t removed from Django so that third party apps could continue using them until the Python 2 end-of-life.

Since we expect apps to drop Python 2 compatibility when adding support for Django 3.0, we’re removing these APIs at this time.

...

django.utils.six - Remove usage of this vendored library or switch to six.



来源:https://stackoverflow.com/questions/59524941/modulenotfounderror-no-module-named-django-utils-six

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!