我一直在使用一个使用sounddevice
模块播放音频的 python 程序。该程序在我的办公室电脑(运行Ubuntu 17.10)中运行良好,但在我的家用电脑(运行Linux Mint 18.3)中运行良好。它会产生以下错误:
Traceback (most recent call last):
File "...path/to/my/code.py", line 11, in <module>
import sounddevice as sd
File "/home/arif/anaconda3/lib/python3.6/site-packages/sounddevice.py", line 64, in <module>
raise OSError('PortAudio library not found')
OSError: PortAudio library not found
我该如何解决这个问题?