pygame.error: 加载 libmpg123.dll 失败:尝试访问无效地址 [英] pygame.error: Failed loading libmpg123.dll: Attempt to access invalid address

查看:139
本文介绍了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 失败:尝试访问无效地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆