2015-12-29 53 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