[英]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.