[英]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.