2012-10-12 42 views
5

另一個新手查詢。我一直在努力爲Python項目安裝matplotlib,因此閱讀所建議的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的文章,我無法弄清楚最佳實踐是什麼。

+0

[可能與此問題重複](http://stackoverflow.com/questions/10343834/homebrew-wants-me-to-amend-my-path -no-線索,如何) – avelis

回答