Python - 使用pip install我收到了ValueError

时间:2014-03-03 18:17:26

标签: 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\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

我正在使用Windows 7,python 3.3。,Microsoft Visual 2010.谢谢

1 个答案:

答案 0 :(得分:0)

我无法告诉你ValueError的具体原因,但我确信你更关心的是安装gevent。但是,此时它不支持Python 3.您可以按this issue进行更新。