Python - 使用pip安装时收到ValueError

0 投票
1 回答
1071 浏览
提问于 2025-04-17 20:39

我想用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

我不能告诉你具体为什么会出现ValueError这个错误,但我知道你更关心的是怎么安装gevent。不过,目前gevent不支持Python 3。你可以关注这个问题,以获取最新消息。

撰写回答