当我从教程中使用它时。
import pygame
pygame.init()
black = ( 0, 0, 0)
white = ( 255, 255, 255)
green = ( 0, 255, 0)
red = ( 255, 0, 0)
size=[700,500]
screen=pygame.display.set_mode(size)
pygame.display.set_caption("jons cool game")
我收到此错误:
Traceback (most recent call last):
File "C:\Users\Jonathan\Desktop\Pygame\Example.py", line 2, in <module>
import pygame
ImportError: No module named 'pygame'
我正在使用 v3.3.1 和 pygame 3.3。