我尝试在Mac OS X 10.6.2上切换到Homebrew(在使用了fink和macport之后)。我已经安装了python 2.7brew install python 问题是,与Macport相反,似乎没有python_select实用程序,而我的默认mac python始终是默认的which python给我吗/usr/bin/python而且/usr/bin/python不是符号链接我怎样才能使python brew成为我的默认python?
3 回答

收到一只叮咚
TA贡献1821条经验 获得超4个赞
当您使用Homebrew时,以下命令可以提供更好的效果:
brew doctor
输出:
==> / usr / bin出现在/ usr / local / bin之前,这意味着将使用系统提供的程序代替Homebrew提供的程序。如果您例如这是一个问题。brew安装了Python。
考虑编辑.bash_profile,以将/ usr / local / bin放在$ PATH中的/ usr / bin之前。

牧羊人nacy
TA贡献1862条经验 获得超7个赞
请参阅:如何在Homebrew中符号链接python?
$ brew link --overwrite python
Linking /usr/local/Cellar/python/2.7.3... 28 symlinks created
$ which python
/usr/local/bin/python
添加回答
举报
0/150
提交
取消