安装 PyObjC 时出错 osX
error installing PyObjC osX
我是 Python 的新手,我正在拼命尝试通过 spyder 安装 PyObjC。
命令
pip install PyObjC
returns 一个错误:
Command "python setup.py egg_info" failed with error code 1 in
/private/var/folders/0v/cg_rdz_x4d32jm6hz7n5txgh3djxb1/T/pip-build-UBlDtP/pyobjc-core/
在其他帖子中找不到有效的解决方案。我还尝试通过 conda 手动安装整个东西。
似乎安装了 Xcode。
这是我遇到问题的唯一模块。
有什么建议吗? :)
注意:我在 macOS Sierra 10.12
上使用 Python 2.7
实际的错误信息可以提供更多帮助,在回溯的开头。在我的例子中是
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
我是 Python 的新手,我正在拼命尝试通过 spyder 安装 PyObjC。 命令
pip install PyObjC
returns 一个错误:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/0v/cg_rdz_x4d32jm6hz7n5txgh3djxb1/T/pip-build-UBlDtP/pyobjc-core/
在其他帖子中找不到有效的解决方案。我还尝试通过 conda 手动安装整个东西。 似乎安装了 Xcode。 这是我遇到问题的唯一模块。
有什么建议吗? :)
注意:我在 macOS Sierra 10.12
上使用 Python 2.7实际的错误信息可以提供更多帮助,在回溯的开头。在我的例子中是
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