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: ^ SyntaxError: invalid syntax Could anyone please help me with the problem? Thanks, Vani
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 make make install
History
Date
User
Action
Args
2022-04-11 14:56:44
admin
set
github: 49253
2009-01-19 20:52:16
pitrou
set
status: open -> closedresolution: not a bugmessages: + nosy: + pitrou