我正在寻找适用于Windows的Python 2.7的gevent

时间:2011-02-01 20:44:13

标签: python gevent greenlets

然而,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将无法锁定。

3 个答案:

答案 0 :(得分:9)

这对我有用:

  1. Unofficial Windows Binaries for Python Extension Packages

  2. 获取gevent安装程序
  3. 从同一网站安装greenlet

  4. 如果您使用的是64位Windows 7计算机并且无法安装,read this too

答案 1 :(得分:5)

你应该让greenlet的维护者为Python 2.7构建.msi。

我在这里做了:greenlet issue #17

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

答案 2 :(得分: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