我使用pygame编写了一堆python游戏的代码,但是我无法想象如何让pygame为我的生活工作。这是我尝试在终端中运行时得到的错误消息。如何在el capitan上安装pygame
~$ python dodger.py
Traceback (most recent call last):
File "dodger.py", line 1, in <module>
import pygame, random, sys
ImportError: No module named pygame`
你怎么安装'pygame'?更有趣的是:如果pygame没有安装,你是如何设法编写“一堆代码”的?没有测试? – Matthias