【发布时间】:2015-08-26 05:20:44
【问题描述】:
我正在尝试在 Mac OS X Yosemite 上安装 Python3,并通过运行以下命令来实现:
$ brew install python3
当我尝试这样做时,我收到以下错误:
clang: error: unable to find utility "clang", not a developer tool or in PATH
otool: error: unable to find utility "otool", not a developer tool or in PATH
Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
我该如何解决这个问题?
谢谢。
【问题讨论】:
-
这意味着您没有
clang和otool来构建python 源代码。你有没有安装 xcode 命令行工具? -
@kxxoling 我已经安装了整个 Xcode,可以吗?
-
我不确定在这种情况下是否会安装 Xcode CLI。不确定时,重新安装即可。
-
我想知道 Apple 什么时候会更新默认安装...也许几年后,到 2020 年完全不支持?