470,647 Members | 1,184 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

Python installation problem

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

Mar 17 '06 #1
4 1397
ma*********@email.com wrote:

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.
--
Kevin Walzer
iReveal: File Search Tool
http://www.wordtech-software.com
Mar 17 '06 #2
ma*********@email.com wrote:
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
sc***********@acm.org
Mar 17 '06 #3
Thanks for the fast responses.>mp

Mar 17 '06 #4
ma*********@email.com schrieb:
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
Mar 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Josh | last post: by
1 post views Thread by Rami A. Kishek | last post: by
4 posts views Thread by Logan | last post: by
3 posts views Thread by Zunbeltz Izaola | last post: by
7 posts views Thread by Erik Johnson | last post: by
3 posts views Thread by Matthias Baas | last post: by
3 posts views Thread by stuart_white_ | last post: by
16 posts views Thread by Jaco Naude | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.