Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install gevent on Windows?

I'm trying to install gevent on Windows. In order to do that, I've downloaded and compiled libevent, then I run pip install gevent and get an error: Please provide path to libevent source with --libevent DIR. How can I pass the libevent option to setup.py using pip?

Thanks in advance, Ivan.

UPD: running pip install gevent --install-option="--libevent path_to_libevent" gives the same result.

like image 628
Ivan Gromov Avatar asked Feb 29 '12 13:02

Ivan Gromov


People also ask

What is gevent spawn?

gevent is a coroutine -based Python networking library that uses greenlet to provide a high-level synchronous API on top of the libev or libuv event loop. Features include: Fast event loop based on libev or libuv. Lightweight execution units based on greenlets.

What is gevent Pywsgi?

pywsgi – A pure-Python, gevent-friendly WSGI server. A pure-Python, gevent-friendly WSGI server. The server is provided in WSGIServer , but most of the actual WSGI work is handled by WSGIHandler — a new instance is created for each request.

What is gevent Eventlet?

gevent is a coroutine-based cooperative multitasking python framework that relies on monkey patching to make all code cooperative. Gevent actually draws its lineage from Eve Online which was implemented using Stackless Python which eventually evolved into eventlet which inspired gevent.


2 Answers

Get a binary installer from http://code.google.com/p/gevent/downloads/list

like image 158
Denis Avatar answered Sep 19 '22 09:09

Denis


Download the precompiled packages here:

  • http://pypi.python.org/pypi/greenlet
  • http://pypi.python.org/pypi/gevent

This worked for me, python 2.7 32 bit build.

like image 20
Björn Lindqvist Avatar answered Sep 20 '22 09:09

Björn Lindqvist