python - 如何修复解决 Homebrew 医生警告的路径

标签 python path matplotlib homebrew

另一个新手查询。我一直在努力为 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 的文章,以至于我无法确定最佳实践是什么。

最佳答案

抱歉浪费时间。有关更改路径的关键问题已在此查询中得到解答:How to modify PATH for Homebrew?

关于python - 如何修复解决 Homebrew 医生警告的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12861422/

相关文章:

python - Pandas:将 DataFrame 与稀疏矩阵连接起来

c - ANSI C 中的字符串处理

python - Seaborn:带有频率的计数图()

python - Matplotlib 使用 for 循环显示多个图像

python - KeyError:[列] 中没有 Float64Index,不确定如何进行

python - 激活Anaconda3中的环境

Python IDLE 在 mac Snow Leopard 上崩溃

http - 浏览器 cookie 域如何工作?

python - OS X Python : alias not working anymore, 链接到哪里?

python - matplotlib contourf3d plot_surface 与 trisurf