【发布时间】:2016-04-03 10:56:33
【问题描述】:
我想在 win_64 (windows 10) 上的 python 2.7 中安装 pygame,但我给出了一些错误!
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)
还有一些像这样的错误。
【问题讨论】:
标签: python windows python-2.7 pygame pip