【问题标题】:Error when installing PortAudio through homebrew. (MAC)通过自制软件安装 PortAudio 时出错。 (苹果)
【发布时间】:2018-05-15 00:03:19
【问题描述】:

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

正在更新自制软件... ==> Homebrew 启用了匿名聚合用户行为分析。在此处阅读分析文档(以及如何选择退出):
https://docs.brew.sh/Analytics.html

xcrun:错误:无效的活动开发者路径 (/Library/Developer/CommandLineTools),在以下位置缺少 xcrun: /Library/Developer/CommandLineTools/usr/bin/xcrun 错误:失败时 执行: git config --local --replace-all homebrew.analyticsmessage 真的 ==> Tapping homebrew/core xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),在以下位置缺少 xcrun: /Library/Developer/CommandLineTools/usr/bin/xcrun 错误:失败时 执行: git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1 错误:执行失败:/usr/local/bin/brew tap homebrew/core

我不知道从这里做什么。我可以使用一些帮助,建议我在这里问这个问题。给您添麻烦了。

【问题讨论】:

    标签: macos homebrew speech-recognition portaudio


    【解决方案1】:

    尝试运行

    xcode-select --install
    

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

    【讨论】:

    • 效果很好!太感谢了!只是让我知道将来,是什么让你告诉我运行命令?
    • 我用谷歌搜索了xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),前两个链接都建议运行xcode-select --install。我记得过去遇到过类似的事情,所以我想这可能对你有用。
    猜你喜欢
    • 2020-12-08
    • 2022-07-27
    • 2012-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-11
    • 2020-11-04
    • 1970-01-01
    相关资源
    最近更新 更多