【问题标题】:error installing PyObjC osX安装 PyObjC osX 时出错
【发布时间】:2017-02-15 02:37:15
【问题描述】:

我是 Python 新手,我正在拼命尝试通过 spyder 安装 PyObjC。 命令

pip install PyObjC

返回错误:

命令“python setup.py egg_info”失败,错误代码为 1 /private/var/folders/0v/cg_rdz_x4d32jm6hz7n5txgh3djxb1/T/pip-build-UBlDtP/pyobjc-core/

在其他帖子中没有找到有效的解决方案。我也尝试过手动和通过 conda 安装整个东西。 似乎已安装 Xcode。 这是我遇到问题的唯一模块。

有什么建议吗? :)

注意:我在 macOS Sierra 10.12 上使用 Python 2.7

【问题讨论】:

    标签: python macos python-2.7 installation pyobjc


    【解决方案1】:

    可以提供更多帮助的实际错误消息位于回溯的开头。在我的情况下是

    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      ...
    

    如果您得到相同的结果,以下是有关如何调试此问题的答案: xcode-select active developer directory error

    【讨论】:

      猜你喜欢
      • 2015-10-24
      • 1970-01-01
      • 1970-01-01
      • 2014-08-23
      • 2021-03-11
      • 1970-01-01
      • 2017-02-22
      • 2023-04-11
      • 1970-01-01
      相关资源
      最近更新 更多