Skip to main content
 首页 » 编程设计

python之在 Mac OS X Yosemite 上安装 Python3

2025年05月04日34itcoder

我正在尝试在 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 

我该如何解决这个问题?

谢谢。

请您参考如下方法:

先尝试brew update,然后再尝试brew doctor。医生诊断常见问题。

您的 Xcode/命令行工具似乎有问题。 This回答可能会有帮助。