2015-12-29 55 views
-1

我想在win_64(windows 10)上的python 2.7中安裝pygame,但我給了一些錯誤!如何在Python 2.7上安裝PyGame(win 64)

pip install hg+http://bitbucket.org/pygame/pygame 

它給了我一個錯誤:

Cannot unpack file c:\users\ahmad\appdata\local\temp\pip-xatkk_- unpack\download.shtml (downloaded from c:\users\ahmad\appdata\local\temp\pip- ki5epe-build, content-type: text/html); cannot detect archive format 
Cannot determine archive format of c:\users\ahmad\appdata\local\temp\pip-ki5epe-build) 

運行此命令:

c:/python34/scripts/pip install http://bitbucket.org/pygame/pygame 

給我:

Cannot unpack file C:\Users\Marius\AppData\Local\Temp\pip-b60d5tho-unpack\pygame 
(downloaded from C:\Users\Marius\AppData\Local\Temp\pip-rqmpq4tz-build, content-type: text/html; charset=utf-8); cannot detect archive format 
Cannot determine archive format of C:\Users\Marius\AppData\Local\Temp\pip-rqmp\q4tz-build) 

pip install http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz 

給我:

Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\ahmad\\appdata\\local\\temp\\pip-vt49bq-build\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\ahmad\appdata\local\temp\pip-lclwur-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\ahmad\appdata\local\temp\pip-vt49bq-build) 

還有一些像這樣的錯誤。

回答

0

由於你在Windows PIP是一團糟。考慮繼續使用http://www.pygame.org/download.shtml,然後下載可執行文件或msi。

+0

它具有這樣的錯誤太:(進口pygame的 文件 「C:\ Python27 \ LIB \站點包\ pygame的\ __ init__.py」,第95行,在 從pygame.base進口* ImportError:DLL加載失敗:%1不是有效的Win32應用程序。)爲什麼? – Ahmad

+0

你究竟做了什麼來獲得這個錯誤? – Untitled123

+0

另外,它在頁面上說:Windows 64位用戶注意:使用這個32位pygame的32位Python。 – Untitled123