Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing Python-3 #49253

Closed
vani mannequin opened this issue Jan 19, 2009 · 2 comments
Closed

Error while installing Python-3 #49253

vani mannequin opened this issue Jan 19, 2009 · 2 comments

Comments

@vani
Copy link
Mannequin

vani mannequin commented Jan 19, 2009

BPO 5003
Nosy @pitrou

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-01-19.20:52:16.778>
created_at = <Date 2009-01-19.20:26:32.941>
labels = ['invalid', 'expert-installation']
title = 'Error while installing Python-3'
updated_at = <Date 2009-01-19.20:52:16.767>
user = 'https://bugs.python.org/vani'

bugs.python.org fields:

activity = <Date 2009-01-19.20:52:16.767>
actor = 'pitrou'
assignee = 'none'
closed = True
closed_date = <Date 2009-01-19.20:52:16.778>
closer = 'pitrou'
components = ['Installation']
creation = <Date 2009-01-19.20:26:32.941>
creator = 'vani'
dependencies = []
files = []
hgrepos = []
issue_num = 5003
keywords = []
message_count = 2.0
messages = ['80207', '80208']
nosy_count = 2.0
nosy_names = ['pitrou', 'vani']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue5003'
versions = ['Python 3.0']

@vani
Copy link
Mannequin Author

vani mannequin commented Jan 19, 2009

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

@vani vani mannequin added the topic-installation label Jan 19, 2009
@pitrou
Copy link
Member

pitrou commented Jan 19, 2009

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

@pitrou pitrou closed this as completed Jan 19, 2009
@pitrou pitrou added the invalid label Jan 19, 2009
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant