Python-使用pip安装时,我收到ValueError
我想用pip安装gevent,但当我尝试它时,最终会得到以下结果:Python-使用pip安装时,我收到ValueError,python,python-3.x,pip,gevent,Python,Python 3.x,Pip,Gevent,我想用pip安装gevent,但当我尝试它时,最终会得到以下结果: ... File "c:\users\draffix\appdata\local\temp\pip_build_Draffix\gevent\setup.py", line 237, in build_extension result = build_ext.build_extension(self, ext) File "C:\Python33\lib\distutils\command\buil
...
File "c:\users\draffix\appdata\local\temp\pip_build_Draffix\gevent\setup.py", line 237, in build_extension
result = build_ext.build_extension(self, ext)
File "C:\Python33\lib\distutils\command\build_ext.py", line 517, in build_extension
depends=ext.depends)
File "C:\Python33\lib\distutils\msvc9compiler.py", line 460, in compile
self.initialize()
File "C:\Python33\lib\distutils\msvc9compiler.py", line 371, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python33\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: ['path']
----------------------------------------
Cleaning up...
Command C:\Python33\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\draffix\\appdata\\local\\temp\\pip_build_
Draffix\\gevent\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'ex
ec'))" install --record c:\users\draffix\appdata\local\temp\pip-gt7qw6-record\install-record.txt --single-version-externally-
managed --compile failed with error code 1 in c:\users\draffix\appdata\local\temp\pip_build_Draffix\gevent
Storing debug log for failure in C:\Users\Draffix\pip\pip.log
我使用的是Windows7,Python3.3,MicrosoftVisual2010。谢谢我无法告诉您出现
值错误的具体原因
,但我相信您更关心的是安装gevent。但是,目前它不支持Python3。您可以关注更新。谢谢,我不知道。无论如何,我把python降级到了2.7。现在一切都很顺利。