Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我得到的错误的屏幕截图。请帮我!我还在我的Ubuntu 20.04中安装了mpg321。如果我从终端播放音乐,它工作正常。在这里,我正在从终端播放一首歌曲。我也尝试从终端播放hello.mp3(来自 gtts 输出)。当我从终端运行时它在说你好,但是当我尝试在 Pycharm 中运行时它显示错误。请帮我!!
尝试这个,
#pip install playsound from playsound import playsound playsound("fileName.mp3")
希望这解决了您的问题。