Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

Django Install Error: " SyntaxError: future feature unicode_literals is not defined "

$
0
0
I am new to programming in general and I am struggling to install Django.
I downloaded the gar file, unzipped it and then attempted to do the " sudo
python setup.py install " command in the terminal (I'm working on a Mac OS
X 10.5.8) but was given the following message :

Traceback (most recent call last):
File "setup.py", line 80, in <module>
version = __import__('django').get_version()
File "/Users/byronprice/Downloads/Django-1.6.1/django/__init__.py", line
6, in get_version
from django.utils.version import get_version
File "/Users/byronprice/Downloads/Django-1.6.1/django/utils/version.py",
line 1
from __future__ import unicode_literals
SyntaxError: future feature unicode_literals is not defined

I imagine unicode_literals is part of the Python library and that perhaps
in version 3.3 the name was changed to something slightly different. Does
anyone have any ideas??

Viewing all articles
Browse latest Browse all 6551

Latest Images

Trending Articles



Latest Images