Maurice Ling wrote:

Hi,

I'm running OSX 10.3, which had python originally installed. However, during one of my installations from fink, python is installed, which means I have 2 copies of python on my system. When I type "python" in the terminal, the fink's python came up.
[]
However, since there is the apple's python in my system as well, when I clicked on a .py file, it may or may not work, as all my 3rd party python framework installations goes into fink's python.

Usually, Apple's python and Fink's python (even two versions of the latter) can live together peacefully. They are not integrated, however, each one has their own separate site-packages (in the case of Apple's python, installed by MacPython, for example, in /Library/Python/2.3)


From the command line you can control quite well which python you will use, just choose the right command name.

If you want double-clicking on *.py files to open them with /sw/bin/python2.3, you can do the following:
.
1. Do Cmd-I on a *.py file in the Finder and make sure that "Open with" is set to PythonLauncher. If not, set this so that it is set for all files of this type.


2. Run PythonLauncher.app (it is in /System/Library/Frameworks/Python.framework/Versions/2.3/Resources/, easiest way to start it is from the command line "open -a PythonLauncher"). Open its Preferences and change the Interpreter entry to /sw/bin/python2.3.
[]
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages'] My problem is that these directories are no longer in existence since I've deleted them in the process of uninstalling MacPython.

Uninstalling PacPython should not have removed anything inside /System/Library. If it did, it is a bug of the MacPython package. It should restrict itself to the publicly accessible /Library/Python directory. If uninstalling this removed essential parts of the Python framework, you should reinstall the BSD.pkg


In short, my question is, how can I dump away with apple python and use fink python totally?

In short, don't dump it, but make sure it does what you want.

--
Martin




------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to