python_select 与 fink 安装的 python?

标签 python fink

如何在 fink 安装的 python 中使用 python_select?它找不到它,我不想经历使用 macports 安装 python 的整个过程。我从 macports 得到了 python_select 。它报告:

Available versions:
current none python26-apple

我使用fink安装python:

/sw/bin/python2.7

最佳答案

我在我的机器上看到以下内容:

Available versions:
current none python26 python26-apple

我猜它正在查找路径中可用的 python 版本。因为,MacPorts 转到/opt; Fink 转到/sw。 fink 在你的路径上吗? $PATH 中包含什么。

I would suggest that you use macports. python_select works well with macports installation.

请参阅以下讨论,建议使用 macports:

我个人使用 macports。

sudo port install python27 
sudo port install python_select
sudo python_select python27

关于python_select 与 fink 安装的 python?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4131016/

相关文章:

python - 使用 Pandas 快速生成部分 DataFrame

python - 为什么除法四舍五入为整数?

python - 使用 python 和 cocoa 设置 : OS X 10. 6.6 + XCode3.2

gnuplot - Fink 和 Homebrew - 他们可以在 mac osx 上生活在一起吗?

macos - 适用于 Mac OS X 的 gtkmm-2.4-dev

macosx下的python matplotlib框架?

python - 使用不等式条件从 pandas 数据帧中查找值到另一个数据帧中

python - md5 到 python 中的整数位

python - 将目录上传到 pinata ipfs API

Python 3.4 在生成部分(但不是全部)带有段错误 11 的 Cartopy map 时崩溃