2012-09-20 73 views
2

我已经在Windows 7上安装了python 2.7.3,现在我想为它pygame。我甚至安装了pygame 1.92 a0,但它似乎没有工作。任何人都可以帮助解决这个问题吗?我也试图与pygame的1.9.1,但是当我输入“进口pygame的”关于贵,我得到一个错误信息:安装Python的pygame 2.7.3

回答

3

你会

Traceback (most recent call last): 
    File "<pyshell#3>", line 1, in <module> 
     import pygame 
    ImportError: No module named pygame 

我是否需要设置任何路径?想要下载pygame-1.9.2a0.win32-py2.7.msi版本,你可以在this website,上搜索,或者直接从这个页面下载,点击here如果你正确下载,它应该可以正常运行,一定要卸载老版本的pygame第一个。

-1

只要按照说明。希望它可以帮助你。

来源:https://inventwithpython.com/pygame/chapter1.html

enter image description here

+0

请不要粘贴为东西很容易被复制文本的图像。这不仅对视力障碍者有意义,而且对带宽也是一种不必要的浪费。非常感谢。 –

+0

好的。感谢您的纠正。下次再小心点。 –