如何解决PyAudio OSError: [Errno -9986] 内部 PortAudio 错误
我正在尝试在 MacBook Air 上的 OSX 上运行 PyAudio,但我不断收到错误消息:
@available(macOS 10.15,iOS 13,tvOS 13,watchOS 6,*)
public protocol Identifiable {
/// A type representing the stable identity of the entity associated with
/// an instance.
associatedtype ID : Hashable
/// The stable identity of the entity associated with this instance.
var id: Self.ID { get }
}
我正在运行 Python 3.8.2 并使用 brew 安装了 PortAudio。任何人以前遇到过这个问题,对从哪里开始调试这个问题或声音识别的替代方案有任何想法吗?谢谢
解决方法
升级到 Big Sur 后,我也开始收到此错误。
针对 macOS SDK 11 编译 portaudio 似乎存在问题。据报道,在 Big Sur 上将 XCode 降级到 12.1(使用 macOS SDK 10.5)已解决了当前正在此处跟踪的问题:https://github.com/PortAudio/portaudio/issues/218#issuecomment-731310548。
或者,现在从 --HEAD
重新安装似乎对我有用。
brew uninstall portaudio
brew install portaudio --HEAD
,
您最近更新到 BigSur 了吗?更新后我在另一个程序中看到了这一点。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。