【问题标题】:Python - with pip install I recieve ValueErrorPython - 使用 pip install 我收到 ValueError
【发布时间】:2014-03-03 18:17:26
【问题描述】:

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

【问题讨论】:

    标签: python python-3.x pip gevent


    【解决方案1】:

    我无法告诉您ValueError 的具体原因,但我确信您更关心的是安装 gevent。不过目前还不支持 Python 3。您可以关注this issue 获取更新。

    【讨论】:

    • 谢谢,我不知道。无论如何,我将python降级到2.7。现在一切顺利。
    猜你喜欢
    • 1970-01-01
    • 2016-04-15
    • 2023-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多