6

但是 gevent 依赖于 greenlet,我发现的 .msi 版本无法安装,并且 2.6 的 egg 拒绝安装。

msi 版本失败如下。

C:\Windows\system32>easy_install greenlet
install_dir C:\Python27\Lib\site-packages\
Searching for greenlet
Reading http://pypi.python.org/simple/greenlet/
Reading http://bitbucket.org/ambroff/greenlet
Reading http://undefined.org/python/#greenlet
Best match: greenlet 0.3.1
Downloading http://pypi.python.org/packages/source/g/greenlet/greenlet-0.3.1.tar.gz#md5=8d75d7f3f659e915e286e1b0fa0e1c4d
Processing greenlet-0.3.1.tar.gz
Running greenlet-0.3.1\setup.py -q bdist_egg --dist-dir c:\users\ian\appdata\local\temp\easy_install-1epg28\greenlet-0.3.1\egg-dist-tmp-mqhu3n
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'repository'
  warnings.warn(msg)
greenlet.c
greenlet.c : fatal error C1074: 'IDB' is illegal extension for PDB file:
error: Setup script exited with error: command '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe"' failed with exit status 2

C:\Windows\system32>

我想这意味着我的 VS 版本错误。

还有什么我可以使用的吗?

我想获得 PyQt4,这样如果无法访问数据库或需要很长时间才能回复,GUI 就不会锁定。

4

3 回答 3

9

这对我有用:

  1. 从用于 Python 扩展包的非官方 Windows 二进制文件中获取gevent 安装程序

  2. 从同一个站点安装greenlet

如果您使用的是 64 位 Windows 7 机器并且在安装时遇到问题,请阅读此内容

于 2011-10-13T20:24:03.357 回答
5

您应该要求 greenlet 的维护者为 Python 2.7 构建 .msi。

我在这里做了:greenlet issue #17

更新:现在 PyPI 上有 Python 2.7 的构建:http: //pypi.python.org/pypi/greenlet

于 2011-02-02T08:30:33.427 回答
2

我从这里获得了最新版本 - http://code.google.com/p/gevent/downloads/detail?name=gevent-1.0a3.win32-py2.7.msi

还有.exe。在此处查找安装程序和 .exe - http://code.google.com/p/gevent/updates/list

于 2011-09-23T17:38:24.607 回答