При установке pip install django-cms возникло много синтаксических ошибок, но django-cms установилось:
Compiling /home/acade852/academy/env/build/Django/django/contrib/admin/filters.py ...
SyntaxError: ('invalid syntax', ('/home/acade852/academy/env/build/Django/django/contrib/admin/filters.py', 294, 36, ' self.date_params = {k: v for k, v in params.items()\n'))
Compiling /home/acade852/academy/env/build/Django/django/contrib/gis/db/backends/base/operations.py ...
SyntaxError: ('invalid syntax', ('/home/acade852/academy/env/build/Django/django/contrib/gis/db/backends/base/operations.py', 59, 15, " 'Area', 'AsGeoJSON', 'AsGML', 'AsKML', 'AsSVG',\n"))
Compiling /home/acade852/academy/env/build/Django/django/utils/lru_cache.py ...
SyntaxError: ('invalid syntax', ('/home/acade852/academy/env/build/Django/django/utils/lru_cache.py', 28, 34, ' fasttypes = {int, str, frozenset, type(None)},\n'))
а при создании проекта django-admin startproject academy . проект не создался и вылезли ошибки:
Traceback (most recent call last):
File "/home/acade852/academy/env/bin/django-admin", line 7, in <module>
from django.core.management import execute_from_command_line
File "/home/acade852/academy/env/lib/python2.6/site-packages/django/init.py", line 1, in <module>
from django.utils.version import get_version
File "/home/acade852/academy/env/lib/python2.6/site-packages/django/utils/version.py", line 7, in <module>
from django.utils.lru_cache import lru_cache
File "/home/acade852/academy/env/lib/python2.6/site-packages/django/utils/lru_cache.py", line 28
fasttypes = {int, str, frozenset, type(None)},
^ (указывает на запятую после int)
SyntaxError: invalid syntax
В чем могут быть траблы?
Updated 11 May 2016, 23:43 by Svet.