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


这个就是包管理软体令人无语的地方了。Brew和官方下载Python以及Anaconda和EPD版本的Python都无法愉快玩耍。它的提示信息意思是,如果你使用了官方下载的Python,并且还把它的bin目录加到了Path中,那么就会引起Brewed Python在载入config文件时的混乱。

所以解决方法是,如果你打算用Brew来再装一个Python并且打算设Brewed Python为默认,那么就需要卸载官方下载的Python,也就是你问题里面的Python.framework。

$ sudo rm -rf /Library/Frameworks/Python.framework

如果像我一样不打算用Brewed Python(我自己是Anaconda),那么就无解,只能不管这个警告了。但因为这条警告只是为了防止日后万一安装Brewed Python会起冲突,所以只要不安装就没问题啦。


文*的答复经测实用


推荐阅读:
相关文章