setup.py fails line 69 - Dual Python CentOS VPS
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Attempting to install Django on a CentOS Host Gator VPS. We were forced to install Python 2.7 along side 2.4 because YUM broke when we attempted to use 2.7 exclusivity. The package appears to have extracted completely and init.py is present.
I've been following the directions from here:
root@ini [/opt/python2.7/lib/python2.7/site-packages/Django-1.4]# python setup.py install Traceback (most recent call last): File "setup.py", line 69, in ? version = __import__('django').get_version() File "/opt/python2.7/lib/python2.7/site-packages/Django-1.4/django/__init__.py", line 15 parts = 2 if version == 0 else 3 ^ SyntaxError: invalid syntax