No module named six

半腔热情 提交于 2019-11-30 18:33:19

django.utils.six is added in Django 1.4.2, see

https://docs.djangoproject.com/en/1.5/topics/python3/#philosophy

I've just had the same problem. Seems like the dependencies in the transifex package are not listed correctly (it depends on Django == 1.3.1 and django-filter >= 0.1, but django-filter 0.6 depends on Django >= 1.4.5).

I solved by installing an older version of django-filter (0.5.4), NOT by using the package provided in pypi (seems that on pypi there are only 0.6 and 0.1 versions), but directly by downloading the release 0.5.4 from here:

https://github.com/alex/django-filter/releases

and then installing with the usual:

python setup.py install

This should solve your problem:

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