所以我的MacPorts通過Python安裝3.3,使用port install python33
Python版本的MacPorts通過安裝Python 3.3後去
(使用OSX 10.8.2 ML)
一切正常(至少它沒有放出來在結束
所以在這之後,我想選擇通過端口這個特定的Python版本選擇和第一的錯誤信息)想擁有所有可用版本的列表現在:
port select --list python
,這現在只給我3選項的列表:列出
Available versions for python:
None
python27 (active)
python33
之前我安裝python33,我也有蟒蛇的蘋果版本:
Available versions for python:
none
python25-apple
python26-apple
python27 (active)
python27-apple
蘋果版本仍那裏(位於:/System/Library/Frameworks/Python.framework/Versions)他們只是不再列出。
有誰知道如何處理? (此外,當我在外殼使用python
命令,它依然採用了python27蘋果版本。當我想之前更改版本,發生了錯誤。但是,這將是另外一個問題。)
EDIT( 2012年10月24日):
在我發現了命令其間:
port contents python_select
這給出了:
Port python_select contains:
/opt/local/etc/select/python/base
/opt/local/etc/select/python/none
再說什麼是列在這裏,文件夾包含以下文件:
drwxr-xr-x 8 admin 272 24 Okt 09:50 .
drwxr-xr-x 5 admin 170 4 Okt 15:05 ..
-rw-r--r-- 1 wheel 363 23 Okt 17:18 base
lrwxr-xr-x 1 admin 8 23 Okt 18:05 current -> python27
-rw-r--r-- 1 wheel 26 23 Okt 17:18 none
-rw-r--r-- 1 wheel 398 23 Okt 23:27 python27
-rw-r--r-- 1 wheel 384 23 Okt 17:21 python33
的python27和33文件與以下一個簡單的文本文件,相同的內容(版本號不同):
bin/python2.7
bin/pythonw2.7
bin/python2.7-config
bin/idle2.7
bin/pydoc2.7
bin/smtpd2.7.py
bin/2to3-2.7
share/man/man1/python2.7.1
-
/opt/local/Library/Frameworks/Python.framework/Versions/2.7
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
但就是這樣。我不知道我能用這些信息做什麼......
這也可能感興趣:HTTP:// stackoverflow.com/questions/6152765/macports-didnt-place-python-select-in-opt-local-bin – Dave