【问题标题】:Repairing mysterious Python config scripts outside of the system修复系统外的神秘 Python 配置脚本
【发布时间】:2013-06-10 18:33:15
【问题描述】:

我今天在做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/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 上,并通过 Homebrew 安装了 Python 和 Python 3。我认为我的损坏设置与this post 有关,我正在跟踪它以试图让我的 MacVim 正常工作。

有什么想法吗?我相信这可能是符号链接的问题,我对如何解决这些问题一无所知。

【问题讨论】:

    标签: python macos homebrew


    【解决方案1】:

    看起来您通过 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 中。)

    【讨论】:

    • 谢谢,塞缪尔。很高兴看到您也在 StackOverflow 上!
    【解决方案2】:

    EPD 和 Anaconda Python 都有同样的问题。由于我发现 Homebrew Python 无法用于数值分析,因此我不得不转储 Homebrew 包管理器,因为支持很少或根本没有。请参阅我在 2013 年 9 月 25 日发布的帖子。

    os x mountain lion 与自制软件和 EPD 7.3-2(64 位)玩得不好

    Last login: Tue Sep 24 05:28:30 on ttys004 
    ~ ❯❯❯ echo $PATH 
    /Users/mlb/.rbenv/shims:/usr/local/bin:/usr/local/sbin:
    /Library/Frameworks/EPD64.framework/Versions/Current/bin:
    /usr/bin:/bin:/usr/sbin:/sbin 
    
    ~ ❯❯❯ which python 
    /Library/Frameworks/EPD64.framework/Versions/Current/bin/python 
    
    ~ ❯❯❯ python --version 
    Python 2.7.3 -- EPD 7.3-2 (64-bit) 
    
    ~ ❯❯❯ 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/EPD64.framework/Versions/Current/bin/gdal-config 
    /Library/Frameworks/EPD64.framework/Versions/Current/bin/python-config 
    /Library/Frameworks/EPD64.framework/Versions/Current/bin/python2-config 
    /Library/Frameworks/EPD64.framework/Versions/Current/bin/python2.7-config 
    /Library/Frameworks/EPD64.framework/Versions/Current/bin/xml2-config 
    /Library/Frameworks/EPD64.framework/Versions/Current/bin/xslt-config
    
    Warning: Enthought Python was found in your PATH. 
    This can cause build problems, as this software installs its own 
    copies of iconv and libxml2 into directories that are picked up by 
    other build systems.
    
    
    .zprofile
    ---------
    # Setting PATH for epd-7.3-2-macosx-x86_64
    export EPDPATH="/Library/Frameworks/EPD64.framework/Versions/Current"
    export PATH="$EPDPATH/bin:${PATH}"
    export PYTHONPATH="$EPDPATH/lib/python2.7/site-packages"
    

    【讨论】:

      猜你喜欢
      • 2019-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-07
      • 1970-01-01
      • 1970-01-01
      • 2012-12-09
      • 1970-01-01
      相关资源
      最近更新 更多