简体   繁体   English

当我运行pyaudio程序时出现此错误,我该如何解决

[英]when I run the pyaudio program I got this error, how can l resolve this

I got the error 我得到了错误

Could not import the PyAudio C module '_portaudio'. Traceback (most recent call last): File "/Users/huangjinxue/Documents/python/workspace/pyMusic/music-pyaudio.py", line 2, in <module> import pyaudio File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyaudio.py", line 116, in <module> import _portaudio as pa ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_portaudio.so, 2): Symbol not found: _PaMacCore_SetupChannelMap Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_portaudio.so Expected in: dynamic lookup

How can i resolve it, i want to use pyaudio play music list 我要如何解决此问题,我想使用pyaudio播放音乐列表

I am guessing from the error messages that you are on either OS-X or Linux - in either case you have an unmet dependency on the PortAudio package. 我从错误消息中猜测,您使用的是OS-X还是Linux-在任何一种情况下,您对PortAudio软件包的依赖都未得到满足。

You need to either install it from your package manager or to download, build & install it from here . 您需要从包管理器中安装它,或者从此处下载,构建和安装它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试运行这些命令来安装 soundfile 和 pyaudio 并收到这些错误我该如何解决它们 - Trying to run these commands to install soundfile and pyaudio and getting these errors how can I resolve them 当我尝试使用“pip install PyAudio”安装 PyAudio 模块时出现此错误……我现在该怎么办? - I got this error when I try to install the PyAudio module using 'pip install PyAudio'… What should I do now? 为什么我运行我的Python程序时得到“sh:1:语法错误:未终止的引用字符串”? - Why I got “sh: 1: Syntax error: Unterminated quoted string” when I run my Python program? 在 macOS 中安装 PyAudio 时出错:如何解决此问题? - Error While installing PyAudio in macOS: How can I fix this problem? 如何解决安装pyaudio的错误 - How to resolve error of installing pyaudio 如何解决 PyAudio 安装错误 - How to Resolve PyAudio Installation Error 当我尝试录制某些内容时出现 Pyaudio 错误 - Pyaudio error when i try to record something 尝试安装PyAudio时出现错误 - I get an error when trying to install PyAudio 当我运行程序时,如何解决('module' object is not callable )的错误? - How can I solve the error of ( 'module' object is not callable ) when i run the program? 当我已经有了模块并且错误显示为:ModuleNotFoundError 时,如何运行我的程序? - How can I run my program when I already had the module and the error said: ModuleNotFoundError?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM