【发布时间】:2015-03-04 05:15:14
【问题描述】:
我正在尝试使用 pip install pygame 安装 pygame,但它不起作用...
C:\Python27\pygame-1.9.1release>pip install pygame
'pip' is not recognized as an internal or external command,operable program or batch file.
我尝试从 pygame-1.9.1release 运行 setup.py 文件,但我得到了以下回溯...
No Arguments Given, Perform Default Install? [Y/n]y
WARNING, DLL for smpeg library not found.
WARNING, DLL for tiff library not found.
WARNING, DLL for SDL_ttf library not found.
WARNING, DLL for SDL_image library not found.
WARNING, DLL for vorbisfile library not found.
WARNING, DLL for jpeg library not found.
WARNING, DLL for vorbis library not found.
WARNING, DLL for SDL_mixer library not found.
WARNING, DLL for png library not found.
WARNING, DLL for SDL library not found.
WARNING, DLL for ogg library not found.
WARNING, DLL for z library not found.
WARNING, DLL for portmidi library not found.
running install
running build
running build_py
running build_ext
building 'pygame._numericsurfarray' extension
Traceback (most recent call last):
File "C:\Python27\Lib\pygame-1.9.1release\setup.py", line 491, in <module>
setup(**PACKAGEDATA)
File "C:\Python27\lib\distutils\core.py", line 169, in setup
raise SystemExit, "error: " + str(msg)
SystemExit: error: Unable to find vcvarsall.bat
请指导我如何使用 pip 命令...以及如何安装 pygame
我正在使用python2.7.8
尝试在 python2.7.8 python shell 中执行 get-pip.py 时,我得到以下回溯...
Traceback (most recent call last):
File "C:\Users\hardik\Downloads\get-pip(3).py", line 20204, in <module> main()
File "C:\Users\hardik\Downloads\get-pip(3).py", line 152, in main bootstrap(tmpdir=tmpdir)
File "C:\Users\hardik\Downloads\get-pip(3).py", line 130, in bootstrap sys.exit(pip.main(["install", "--upgrade"] + packages + args))
File "c:\users\hardik\appdata\local\temp\tmpj_gcu3\pip.zip\pip\__init__.py", line 217, in main
File "c:\users\hardik\appdata\local\temp\tmpj_gcu3\pip.zip\pip\basecommand.py", line 183, in main
File "C:\Python27\lib\logging\config.py", line 776, in dictConfig dictConfigClass(config).configure()
File "C:\Python27\lib\logging\config.py", line 575, in configure '%r: %s' % (name, e))
ValueError: Unable to configure handler 'console': closed
【问题讨论】:
-
我已阅读 stackoverflow.com/questions/4750806/… 我无法运行 get-pip.py 文件...不知道错误在哪里...在命令提示符中显示以下内容...连接被 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication required', ))': /simple/pip/ 找不到任何满足 pip 要求的下载 根本找不到 pip 的分布
-
完成...感谢您的帮助...
标签: python-2.7 pip pygame