我尝试在 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
不是符号链接(symbolic link)
如何让 python brew flavor 成为我的默认 python?
最佳答案
当您使用 Homebrew 时,以下命令可以提供更好的画面:
brew doctor
输出:
==> /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. This is an issue if you eg. brew installed Python.
Consider editing your .bash_profile to put: /usr/local/bin ahead of /usr/bin in your $PATH.
https://stackoverflow.com/questions/5157678/