Python installation problem

M

mailpitches

I'm using OS X 10.4.5. I have an easy problem that I can't solve:

I have two versions of python installed. 2.3 came with the OS and 2.4 I
installed via fink.

When I call python from the command-line it calls 2.4.
When I just call a *.py file like test.py, it calls 2.3.

1. How do I make both these kinds of calls work with 2.4.
2. How do I uninstall v. 2.3 completely.

Tnx
 
K

Kevin Walzer

1. How do I make both these kinds of calls work with 2.4.

Try "/sw/bin/python foo.py" in the terminal and "#!/sw/bin/python" in
your scripts.
2. How do I uninstall v. 2.3 completely.

Don't do that. It will break stuff in the OS that depends on Python.
 
S

Scott David Daniels

I'm using OS X 10.4.5. I have an easy problem that I can't solve:
I have two versions of python installed. 2.3 came with the OS and 2.4 I
installed via fink....
2. How do I uninstall v. 2.3 completely.

Probably not the greatest idea, because pieces of OS X may actually use
the internal Python 2.3.

--Scott David Daniels
(e-mail address removed)
 
D

Diez B. Roggisch

I'm using OS X 10.4.5. I have an easy problem that I can't solve:

I have two versions of python installed. 2.3 came with the OS and 2.4 I
installed via fink.

That isn't the "proper" version. While it works, you certainly want the
python 2.4 framework build. That is the specialized OS X variant. If you
ever want to do work with e.g. PyObjC to create Cocoa-Apps you'll need
that (AFAIK).
When I call python from the command-line it calls 2.4.
When I just call a *.py file like test.py, it calls 2.3.

1. How do I make both these kinds of calls work with 2.4.

2. How do I uninstall v. 2.3 completely.

Bad idea. OS X needs that one.


Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,291
Messages
2,571,455
Members
48,132
Latest member
KatlynC08

Latest Threads

Top