2012-09-20 75 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

好的。感謝您的糾正。下次再小心點。 –