Pygame窗口打不开 [英] Pygame window not opening

查看:105
本文介绍了Pygame窗口打不开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 python 3.8 和 pygame.我正在使用 Pycharm.在我家里的 Windows 台式电脑上,一切都按预期完美运行.然而,在我的 Mac 上,当我运行我的代码时,python.app 图标开始无限期地在我的 Dock 中跳跃,但没有打开任何窗口.没有错误,其他一切都很好.只是窗户打不开.

I have python 3.8 and pygame installed. I am using Pycharm. On my Windows desktop pc at home, everything works perfectly as intended. However on my mac, when I run my code, the python.app icon starts jumping in my dock indefinitely but no window is opening. There are no errors, and everything else works perfectly fine. Just the window doesn't open.

推荐答案

我遇到了同样的问题.转到 pyCharm 屏幕的右下角,然后单击 Python3.8 .

I had this same issue. Go to the bottom right of the pyCharm screen and click on Python3.8 .

应该会出现一个包含解释器设置的列表.
转到项目解释器并双击您正在运行的 Pygame 版本并将其更新为 2.0.0dev6.

A list with interpreter settings should appear.
Go to project interpreter and double click on the version of Pygame you are running and update it to 2.0.0dev6.

这篇关于Pygame窗口打不开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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