我最近遇到了 playsound 模块,我在我的 Raspbian 操作系统中尝试了我的 Python IDE,它给了我一些错误:
from playsound import playsound
playsound('/home/pi/mu_code/music.mp3')
这段代码让我出错:
Traceback (most recent call last):
File "/home/pi/mu_code/pl.py", line 2, in <module>
playsound('/home/pi/mu_code/music.mp3')
File "/home/pi/.local/lib/python3.7/site-packages/playsound.py", line 92, in _playsoundNix
gi.require_version('Gst', '1.0')
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gst not available