This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Error while installing Python-3
Type: Stage:
Components: Installation Versions: Python 3.0
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: pitrou, vani
Priority: normal Keywords:

Created on 2009-01-19 20:26 by vani, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg80207 - (view) Author: Sravani Gogineni (vani) Date: 2009-01-19 20:26
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
msg80208 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-01-19 20:52
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:44adminsetgithub: 49253
2009-01-19 20:52:16pitrousetstatus: open -> closed
resolution: not a bug
messages: + msg80208
nosy: + pitrou
2009-01-19 20:26:33vanicreate