SyntaxError: invalid syntax when installing Django from pip

412 views
Skip to first unread message

Chethan Kumar R

unread,
Dec 9, 2015, 5:47:42 AM12/9/15
to Django users
Hi, all

Im new to django, just now installed django through pip and got below syntax error, so can anyone tell me is that fine or need to correct that. 

Thanks in advance.

sudo pip install Django
Downloading/unpacking Django
  Downloading Django-1.9-py2.py3-none-any.whl (6.6MB): 6.6MB downloaded
Installing collected packages: Django
Compiling /tmp/pip_build_root/Django/django/conf/app_template/apps.py ...
  File "/tmp/pip_build_root/Django/django/conf/app_template/apps.py", line 4
    class {{ camel_case_app_name }}Config(AppConfig):
          ^
SyntaxError: invalid syntax

Compiling /tmp/pip_build_root/Django/django/conf/app_template/models.py ...
  File "/tmp/pip_build_root/Django/django/conf/app_template/models.py", line 1
    {{ unicode_literals }}from django.db import models
                             ^
SyntaxError: invalid syntax

Successfully installed Django
Cleaning up...





knbk

unread,
Dec 9, 2015, 6:50:59 AM12/9/15
to Django users
This is an issue with setuptools 5.5.x. It is safe to ignore, or you can upgrade setuptools by upgrading pip: pip install -U pip
Reply all
Reply to author
Forward
0 new messages