【发布时间】:2023-02-07 05:26:24
【问题描述】:
我正在尝试在我的 Mac 上运行一个 Python 程序,该程序需要使用 .avro 二进制文件。 尽管尝试使用 pip install fastavro 来安装它,但我总是在终端上收到以以下几行结尾的错误消息:
...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastavro
Failed to build fastavro
ERROR: Could not build wheels for fastavro, which is required to install pyproject.toml-based projects
我已经在我的 PC 上将 conda 更新为最新版本,同时也更新了 pip。 有谁知道如何解决这个问题?我真的需要尽快在 Mac 上运行这个程序。供您参考,我可以在 Windows 上安装和使用 fastavro,但不能在 Mac 上使用,因此这很可能是 Mac 特有的问题。 多谢
【问题讨论】:
标签: macos installation conda avro