如何在Fink安装的Python中使用python_select?
我该如何使用已经通过fink安装的python来使用python_select?它找不到这个python,我不想再通过macports重新安装一遍python。我是通过macports获得了python_select的。不过,它报告了:
Available versions:
current none python26-apple
我使用fink在以下位置安装了python:
/sw/bin/python2.7
相关问题:
1 个回答
1
我在我的电脑上看到以下内容:
Available versions:
current none python26 python26-apple
我猜这段代码是在查找系统中可用的Python版本。因为MacPorts会去/opt目录,而Fink则去/sw目录。你的路径中有Fink吗? $PATH里包含了什么内容呢?
我建议你使用MacPorts。python_select在MacPorts安装下运行得很好。
下面是相关讨论,建议使用MacPorts:
我个人使用的是MacPorts。
sudo port install python27
sudo port install python_select
sudo python_select python27