python on Mac

L

luca.ciciriello

Hi All.
I'm really new in the python world, so, sorry if my question is particulary
stupid.
I've just installed on my system (Mac OS X 10.4 PPC) the python version
2.5.2 and all works fine.
My next step is to install the version 3.0 (when available). I've read
somewhere that this version will break the backward compatibility with the
2.x series. I know that several Mac apps (such as Xcode developement
environment) use python for its internal functionalities. Now, my question
is: what will appen to the Mac apps if I install the version 3.0 of python?
Is it safe to install this version without to compromise the behaviour of
the system?

Thanks in advance for any answer and, again, sorry if my question is
particulary stupid, I will learn with time.

Luca.



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Carta Eureka realizza i tuoi sogni! Fido fino a 3.000 eruo, rate a partire
da 20 euro e canone gratis il 1° anno. Scoprila!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7876&d=20080827
 
L

Lou Pecora

Hi All.
I'm really new in the python world, so, sorry if my question is particulary
stupid.
I've just installed on my system (Mac OS X 10.4 PPC) the python version
2.5.2 and all works fine.
My next step is to install the version 3.0 (when available). I've read
somewhere that this version will break the backward compatibility with the
2.x series. I know that several Mac apps (such as Xcode developement
environment) use python for its internal functionalities. Now, my question
is: what will appen to the Mac apps if I install the version 3.0 of python?
Is it safe to install this version without to compromise the behaviour of
the system?

Thanks in advance for any answer and, again, sorry if my question is
particulary stupid, I will learn with time.

Luca.

The standard Python installs that I have put the new python in the
directory /Library/Frameworks/Python.framework/Versions/Current/ and
the additional packages in some subdirectory of that one.

The Apple installed Python is in
/System/Library/Frameworks/Python.framework/Versions/Current/

DO NOT TOUCH that one. Just leave it alone. You can set your
..bash_profile path to make sure your Python is used when you run your
scripts. This shouldn't affect the Apple Python. Basically, the
directories /usr/local/:/usr/local/bin/ should come *before* the system
/bin directories. So your .bash_profile should have something like this
line in it:

PATH="/usr/local/:/usr/local/bin/:${PATH}"
export PATH

Bottom line: your installs and Apples' Python are separate and that's
how it should be.

Hope that helps. Others: please correct if I am wrong. Thanks.
 

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

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,044
Members
48,769
Latest member
Clifft

Latest Threads

Top