简体   繁体   中英

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

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.

You need to either install it from your package manager or to download, build & install it from here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM