在linux(Ubuntu)系统下编写应用程序,使用playsound模块播放声音。
from playsound import playsound
def playnoticsound(path):
playsound(path, block=False)
在pycharm中运行没有问题,声音正常播放,但通过pyinstaller打包后,程序不出声音了,调试信息显示。
打包命令
pyinstaller main.py -F
pyinstaller main.py -F -p xxxxxx
都试了还是不好用。程序里还有很多别的库,都好使,唯独这个不好用。
下面是pip3 list
请解救,谢谢大家!