简体   繁体   English

Pygame - pygame.init() 在我的 Ubuntu 系统上不起作用

[英]Pygame - pygame.init() not working on my Ubuntu system

Recently I have switched over to an Ubuntu system, and I am trying to get Pygame to run.最近我已经切换到 Ubuntu 系统,我正在尝试让 Pygame 运行。 I have installed the module and I can import it perfectly well.我已经安装了模块,我可以很好地导入它。 However, when I try to use the function pygame.init() I get the following error.但是,当我尝试使用 function pygame.init()时,出现以下错误。

ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave

I was wondering if anyone else has had this error and how to fix this.我想知道是否有其他人遇到此错误以及如何解决此错误。

Thanks谢谢

It seems to be an audio driver problem, check if this helps out.好像是音频驱动的问题,看看没有帮助。

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

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