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
在此先感谢。
“一般不推荐使用,除非你需要做一些特殊的事情” - >安装Homebrew的Python没有任何问题;它比系统更新。 – bfontaine
@bfontaine自2013年起,情况发生了一些变化。该行在当时是准确的,但Homebrew已经改变了他们的政策,现在提供了许多重复系统库的公式。 – uranusjr