繁体   English   中英

Can't load audio on pygame - Pygame 加载音频时出错:加载 libvorbisfile-3.dll 时出错:找不到指定的模块

[英]Can't load audio on pygame - Pygame error when loading audio: Failed loading libvorbisfile-3.dll: The specified module could not be found

几个月来,我一直在使用pygame 2.0.1 今天,在我升级到最新版本(2.1.2)后,尝试加载音频文件时开始出现此错误:

'pygame.error: Failed loading libvorbisfile-3.dll: The specified module could not be found'.

到目前为止我尝试过的事情:

  • 下载 dll 并将其复制到/site-packages/pygame (它已经存在)。
  • 下载 dll 并复制到正在运行的脚本的文件夹
  • 重启 IDE
  • 重启 Windows
  • 重新安装 pygame
  • 降级到 pygame 2.0.1

我正在使用 Windows 10、Python 3.9.10 并通过 PyCharm 运行 virtualenv。

I solved the issue by uninstalling Python, installing the latest version (3.10.2), creating a new virtual environment, upgrading pip to the latest version (21.2.4) and then installing pygame via pip .

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM