我正在寻找适用于 Windows 的 Python 2.7 的 gevent
然而,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 就不会锁定。
However gevent depends upon greenlet and the .msi version I found fails to install and the egg for 2.6 refuses to install.
The msi version fails as follows.
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>
I guess this means that I have a wrong version of VS.
Is there anything else I can use?
I want to get PyQt4 so the GUI won't lock up if the database can't be reached or takes ages to reply.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这对我有用:
从 Python 扩展的非官方 Windows 二进制文件中获取 gevent 安装程序软件包
从同一站点安装 greenlet
如果您使用的是 64 位 Windows 7 计算机并且在安装时遇到问题,也请阅读此内容。
This worked for me:
Grab the gevent installer from the Unofficial Windows Binaries for Python Extension Packages
Install greenlet from that same site
And if you're on a 64-bit Windows 7 machine and are having trouble installing, read this too.
您应该要求 greenlet 的维护者为 Python 2.7 构建 .msi。
我在这里做到了: greenlet 问题 #17
更新: PyPI 上现在有 Python 2.7 的构建:http://pypi。 python.org/pypi/greenlet
You should ask the maintainer of greenlet to build .msi for Python 2.7.
I did it here: greenlet issue #17
Update: There are now builds for Python 2.7 on PyPI: http://pypi.python.org/pypi/greenlet
我从这里获得了最新版本 - http://code.google.com/p/gevent/downloads/detail?name=gevent-1.0a3.win32-py2.7.msi
还有.exe。在这里查找安装程序和 .exe - http://code.google.com/p/ gevent/更新/列表
I've got latest version from here - http://code.google.com/p/gevent/downloads/detail?name=gevent-1.0a3.win32-py2.7.msi
There is .exe too. Look for both installer and .exe here - http://code.google.com/p/gevent/updates/list