문제

OS: windows 7 (x64)
Python: 3.2
Django: 1.3.1

So I am trying to install Django and am getting the following error:

file "setup.py", line 70 
if u'SVN' in version:  
syntaxError: invalid syntax

So I know this is a compatibility issue with python3.2 and would not be a problem if I re-install python 2.6 instead. My question is there a way around this now? Or is Django still only compatible with python2.6 only?

도움이 되었습니까?

해결책

Django 1.3.1 is compatible with Python versions from 2.4 to 2.7.

There are people working on an experimental port to Python 3 now. But for the time being your best bet is to install Python 2.7.

Update: There is official work being done to port Django to Python 3. See this blog post for more information.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top