'python_select'에 해당되는 글 1

  1. 2009.03.10 [MacPorts] How to set the MacPorts python(python2.5) as default
After the MacPorts python is installed, I'd like to recommend to install 'python_select' package. 

The python is installed as default on Leopard and other versions. There are on /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5.(it is linked to /usr/bin/python.) And The Macports python's default path is /opt/local/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5.(It is also linked to /opt/local/bin/phython.) Using the python_select package we can set the MacPorts python as default. First, install python_select package.
bash-3.2# port install python_select
---> Fetching python_select
---> Attempting to fetch select-0.2.1.tar.gz from http://distfiles.macports.org/python_select
---> Verifying checksum(s) for python_select
---> Extracting python_select
---> Configuring python_select
---> Building python_select
---> Staging python_select into destroot
---> Installing python_select @0.2.1_0+darwin_9
---> Activating python_select @0.2.1_0+darwin_9
---> Cleaning python_select

After installation we can show available python lists using '-l' option. 
bash-3.2# python_select -l
Available versions:
current none python25 python25-apple

And then, we can set the MacPorts python as default. We can show what python is default currently using '-s' option.
bash-3.2# python_select python25
Selecting version "python25" for python
bash-3.2# python_select -s
python25

Despite of this setting, I couldn't solve my python problem using the Trac with the SVN repository. I think this problem come from python library dependency. 
Fatal Python error: Interpreter not initialized (version mismatch?)

신고
이전 1 다음

티스토리 툴바