在系统外部修复神秘的Python配置脚本 [英] Repairing mysterious Python config scripts outside of the system

查看:99
本文介绍了在系统外部修复神秘的Python配置脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天做brew doctor时得到了这个通知:

I got this notice while doing a brew doctor today:

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和&通过Homebrew安装的Python 3.我认为我的损坏设置与

I'm on Mac OSX Mountain Lion, and have both Python & Python 3 installed via Homebrew. I think my broken setup has to do with this post, which I was following in an attempt to get my MacVim working properly.

有什么想法吗?我相信符号链接可能会出问题,而且我对如何解决这些问题一无所知.

Any ideas? I believe it could be a problem with symbolic links, and I'm pretty clueless on how to troubleshoot those.

推荐答案

就像您通过python.org安装程序或类似工具安装了python 2.7和3.3一样,并设置了包含所列出目录的路径.尝试从/Library/Frameworks/Python.framework/Versions/3.3/bin/Library/Frameworks/Python.framework/Versions/2.7/bin(可能在~/.bash_profile中设置)中清除PATH变量.

Looks like you installed Python 2.7 and 3.3 via the python.org installer or something similar and set the path to include that listed directory. Try to clean your PATH variable from /Library/Frameworks/Python.framework/Versions/3.3/bin and /Library/Frameworks/Python.framework/Versions/2.7/bin (probably set in ~/.bash_profile.)

这篇关于在系统外部修复神秘的Python配置脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆