2013-09-01 21 views
6

Mac似乎已經安裝了Python。 brew醫生產生這樣的結果:釀造醫生產生python配置警告:我應該刪除這些配置文件? (Mac)

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 

我應該刪除這些配置文件,還是會導致問題?對我來說:

> which python 
/Library/Frameworks/Python.framework/Versions/2.7/bin/python 

另外:

$ ls /usr/bin/pyth* 
-rwxr-xr-x 2 root wheel 62752 Aug 6 2011 /usr/bin/python* 
-rwxr-xr-x 6 root wheel 925 Aug 6 2011 /usr/bin/python-config* 
lrwxr-xr-x 1 root wheel  75 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 
lrwxr-xr-x 1 root wheel  82 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config 
lrwxr-xr-x 1 root wheel  75 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 
lrwxr-xr-x 1 root wheel  82 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config 
lrwxr-xr-x 1 root wheel  75 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 
lrwxr-xr-x 1 root wheel  82 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config 
-rwxr-xr-x 2 root wheel 62752 Aug 6 2011 /usr/bin/pythonw* 
lrwxr-xr-x 1 root wheel  76 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5 
lrwxr-xr-x 1 root wheel  76 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6 
lrwxr-xr-x 1 root wheel  76 Aug 6 2011 /usr/bin/[email protected] -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7 

在此先感謝。

回答

0

Homebrew主要使用內置工具,所以公式一般應該建立在系統Python上。你應該沒有任何問題,除非你用自制程序覆蓋系統Python(除非你需要做一些特殊的事情,一般不建議這樣做)。

+0

「一般不推薦使用,除非你需要做一些特殊的事情」 - >安裝Homebrew的Python沒有任何問題;它比系統更新。 – bfontaine

+1

@bfontaine自2013年起,情況發生了一些變化。該行在當時是準確的,但Homebrew已經改變了他們的政策,現在提供了許多重複系統庫的公式。 – uranusjr

0

這對我來說並不是一個問題(我的大多數配置都在我的家中,而不是在家中)。我認爲這很好。只要它們在你的路徑中,python就能夠找到它們;唯一的問題是您想要使用brew進行安裝的程序包或程序需要修改這些配置文件。它可能發生,但可能不應該與發達的計劃。