通过自制软件安装 PortAudio 时出错。 (MAC)
Error when installing PortAudio through homebrew. (MAC)
我正在尝试用 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
安装。
我正在尝试用 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.htmlxcrun: 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
安装。