本文介绍了pygame.error: 加载 libmpg123.dll 失败:尝试访问无效地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
music = pygame.mixer.music.load('not.mp3')
pygame.mixer.music.play(loops=-1)
执行代码时出现此错误:
when executing the code I got this error:
Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python38-32\Escape it!.py", line 15, in <module> music = pygame.mixer.music.load('not.mp3') pygame.error: Failed loading libmpg123.dll: Attempt to access invalid address.我已经尝试了从提供完整路径到仅提供名称的所有方法,但每次都出现这种情况
I have tried everything from giving full path to only the name but everytime this shows up
推荐答案如果这不起作用,请重新启动您的 IDE 尝试重新启动您的 PC,它对我有用!!
Restart your IDE if that doesn't work try restarting your PC it worked for me!!
更多推荐
pygame.error: 加载 libmpg123.dll 失败:尝试访问无效地址
发布评论