How to install gevent on Windows?
- Ivan Gromov
- 2012-02-29 13:15
- 5
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.
5 Answers
Latest version has pre-compilled wheel:
pip install gevent==1.1rc1
gevent documentation, What is gevent?¶ 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. gevent.event – Notifications of multiple listeners · gevent.queue – Synchronized queues · Examples · gevent.local – Greenlet-local objects · gevent.lock
Daniil Ryzhkov
2017-12-30 12:59
How can I pass the libevent option to setup.py using pip?
c:\pip install --help (...) --global-option=GLOBAL_OPTIONS Extra global options to be supplied to the setup.pycall before the install command
See How can I set log level used by distutils when using pip?
pip install greenlet windows, The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called “tasklets”. Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on “channels”. pip install greenlet easy_install greenlet. Source code archives and windows installers are available on the python package index at https://pypi.python.org/pypi/
Piotr Dobrogost
2017-05-23 12:31
If you're using 64bit Windows, download here, otherwise installation would fail.
benefits of gevent, gevent. 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. is used for network and I/O bound functions which are scheduled cooperatively, it shows its true power.
laike9m
2014-03-28 13:36
pip
works for me on Windows 7 with 32-bit Python 2.7. You will need to install a C compiler and add a disutils.cfg
file to \Lib\disutils
under your Python install directory. I have Ming installed and my disutils.cfg
looks like this:
[build] compiler=mingw32
gevent wsgi install, gevent.pywsgi – 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. The server can be customized to use different subclasses of WSGIHandler. gevent is already installed and the requirement is satisfied. Pip version is 10.11 and Python 3.6. OS: Windows 10 x64. Using Anaconda VM. This
Tom
2014-05-08 14:32
Get a binary installer from http://code.google.com/p/gevent/downloads/list
gevent · PyPI, gevent 1.5 runs on Python 2.7.9 and up, and Python 3.5, 3.6, 3.7 and 3.8. gevent requires the greenlet library and will install the cffi library by default on Windows Async Workers¶. You may also want to install Eventlet or Gevent if you expect that your application code may need to pause for extended periods of time during
Denis Bilenko
2012-02-29 13:26