尝试播放mp3文件时出现pygame错误:“ pygame.error:无法加载libmpg123.dll:尝试访问无效地址。”

时间:2020-04-14 14:39:30

标签: python-3.x pygame

music = pygame.mixer.music.load("music.mp3")
pygame.mixer.music.play(loops=-1)

这是我运行此代码时的错误:

Traceback (most recent call last):
  File "C:/Users/python/PycharmProjects/untitled1/test.py", line 6, in <module>
    music = pygame.mixer.music.load("music.mp3")
pygame.error: Failed loading libmpg123.dll: Attempt to access invalid address.

我尝试重新启动系统和IDE,但均无法正常工作。

0 个答案:

没有答案