pygame.error: 加载 libmpg123.dll 失败:尝试访问无效地址

编程入门 行业动态 更新时间:2024-10-25 03:20:19
本文介绍了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 失败:尝试访问无效地址

本文发布于:2023-08-07 10:27:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1318620.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   地址   error   pygame   dll

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!