如何解决解决自制啤酒医生警告的方法 [英] How to fix paths to solve Homebrew doctor warnings

查看:60
本文介绍了如何解决解决自制啤酒医生警告的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Another newbie query. I've been struggling to install matplotlib for a Python project so reading around suggested Homebrew was a solid solution for package management and dependencies.

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

However when I run the Homebrew diagnostics I receive the following error:

$ 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.

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

I know this is an incredibly simple query but how do I fix the path?

更重要的是,Homebrew是当前选择的软件包吗?我看过很多有关Fink和MacPorts,easy_install和pip的文章,我无法确定最佳实践是什么.

More importantly, is Homebrew the current package of choice? I've seen so many articles surrounding Fink and MacPorts, easy_install and pip that I can't work out what the best practice is.

推荐答案

为浪费时间而道歉.此查询已回答有关更改路径的关键问题:

Apologies for wasting time. The key question about changing path is already answered in this query: How to modify PATH for Homebrew?

这篇关于如何解决解决自制啤酒医生警告的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆