簡體   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