'绝对初学者的Python编程' - livewires

时间:2015-05-01 15:25:52

标签: python livewires

我想一劳永逸地制止这个该死的问题。在“绝对初学者的Python编程”一书中,它要求您下载其特殊版本的livewires和pygame以及python 3.1.1。但是,使用代码

from livewires import games
input("Press enter . . .")

运行时出现此错误。

Traceback (most recent call last):
       File "C:\Python31\TEST", line 1, in , <module>
          from livewires import games, colors
       File "C:\Python34\lib\site-packages\livewires\games.py", line 57, in <module>
          import pygame, pygame.image, pygame.nixer, pygame.font, pygame.transform
    ImportError: No module named 'pygame.image'

我一直试图解决这个问题!我注意到的是这条线:

File "C:\Python34\lib\site-packages\livewires\games.py", line 57, in <module>

以及它如何说'Python34'而不是'Python31'就像带路径的第一行一样。它去错了地方吗?我该死的蟒蛇出了什么问题?请提前帮助和谢谢。

0 个答案:

没有答案