No module named six

岁酱吖の 提交于 2019-12-03 20:48:22

问题


After installing transifex and ./manage.py the following error shows up:

Error: No modules named six.

Python Six is installed in the virtualenv (from https://pypi.python.org/pypi/six) Django Version is 1.4

Any help would be great! thx & best regards Michael


回答1:


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

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




回答2:


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




回答3:


This should solve your problem:

$ easy_install six


来源:https://stackoverflow.com/questions/16100454/no-module-named-six

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