修复系统外的神秘Python配置脚本

我今天在做一名酿酒医生时得到了这个通知

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/3.3/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3-config
/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3m-config
/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

我在Mac OSX Mountain Lion上,同时拥有Python和Linux通过Homebrew安装Python 3.我认为我的破坏设置与this post有关,我试图让我的MacVim正常工作.

有任何想法吗?我相信这可能是符号链接的问题,而且我对如何解决这些问题毫无头绪.

解决方法:

看起来您通过python.org安装程序或类似的东西安装了Python 2.7和3.3,并设置了包含该列出目录的路径.尝试从/Library/Frameworks/Python.framework/Versions/3.3/bin和/Library/Frameworks/Python.framework/Versions/2.7/bin清除PATH变量(可能设置在〜/ .bash_profile中.)

相关文章

最近做自动化测试时,深感自己对前端涉猎太少,加上对这块比...
homebrew本身就是一个git仓库。使用homebrew安装软件包时,会...
一、Homebrew安装、卸载等命令Homebrew的安装和卸载都非常简...
在mac系统中,使用homebrew可以很方便的管理包。按照官网的说...
我按照说明从这里使用brew安装mysqlhttps://gist.github.com...
我在macOS10.12.4上安装了nginx1.10.3和php5.5.38作为开发服...