Antoine Pitrou added the comment:
setup.py is not meant to be called directly (it will be called by the
Python 3 interpreter as part of the build process and is, therefore,
written in Python 3 syntax).
The proper command sequence to build and install Python is:
./configure --prefix=~/python3
m
New submission from Sravani Gogineni :
i was trying to install python 3 using the folowing command
$ python setup.py --home=~/python3
and i got the below error:
File "setup.py", line 232
except (CCompilerError, DistutilsError) as why:
^
Syntax