当我从教程中使用它。
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:
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")
我得到这个错误。
您是否为Python 3或Python 2安装了Pygame?你用Python 3运行这个脚本吗? – Blender