繁体   English   中英

pygame window 无法通过 Mac 上的 python 启动器打开

[英]pygame window not opening via python launcher on mac

import pygame

pygame.init()
screen = pygame.display.set_mode((800,800))




running = True

while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:

Go to bottom right of your Pycharm window,you should see Project interpreter,click interpreter settings,then double click pygames,then click pygame in the list and check specify version box on the right,then select 2.0.0.dev6.Then click install package。现在它应该可以工作了。

暂无
暂无

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

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