gpt4 book ai didi

macos - 通过 Homebrew 软件安装 PortAudio 时出错。 (苹果)

转载 作者:行者123 更新时间:2023-12-01 22:52:14 25 4
gpt4 key购买 nike

我正在尝试用 python 制作语音识别程序,但我需要安装 PyAudio,这需要 PortAudio。当我尝试通过 Homebrew 安装 PortAudio(它给我的唯一方法)时,终端中弹出错误:

Updating Homebrew... ==> Homebrew has enabled anonymous aggregate user behaviour analytics. Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics.html

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: Failure while executing: git config --local --replace-all homebrew.analyticsmessage true ==> Tapping homebrew/core xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1 Error: Failure while executing: /usr/local/bin/brew tap homebrew/core

我不知道从这里开始做什么。我需要一些帮助,有人建议我在这里问这个问题。抱歉给您带来麻烦。

最佳答案

尝试运行

xcode-select --install

在您的终端中,然后再次尝试安装 homebrew

关于macos - 通过 Homebrew 软件安装 PortAudio 时出错。 (苹果),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47583959/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com