12

另一个新手查询。我一直在努力为 Python 项目安装 matplotlib,因此阅读建议的 Homebrew 是包管理和依赖项的可靠解决方案。

但是,当我运行 Homebrew 诊断程序时,我收到以下错误:

$ brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

2to3
2to3-2.7
idle
idle2.7
pydoc
pydoc2.7
python
python-config
python2.7
python2.7-config
pythonw
pythonw2.7
smtpd.py
smtpd2.7.py
tclsh
tclsh8.5
wish
wish8.5

Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.

我知道这是一个非常简单的查询,但我该如何修复路径?

更重要的是,Homebrew 是当前的首选软件包吗?我看过很多关于 Fink 和 MacPorts、easy_install 和 pip 的文章,以至于我无法弄清楚最佳实践是什么。

4

1 回答 1

10

为浪费时间道歉。这个查询已经回答了关于更改路径的关键问题:如何修改 Homebrew 的 PATH?

于 2012-10-16T06:58:05.800 回答