How to install gevent on Windows?
Solution 1
Get a binary installer from http://code.google.com/p/gevent/downloads/list
Solution 2
Latest version has pre-compilled wheel:
pip install gevent==1.1rc1
Solution 3
Download the precompiled packages here:
This worked for me, python 2.7 32 bit build.
Solution 4
If you're using 64bit Windows, download here, otherwise installation would fail.
Solution 5
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
Related videos on Youtube
Ivan Gromov
Updated on May 18, 2020Comments
-
Ivan Gromov about 4 years
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 thelibevent
option tosetup.py
usingpip
?Thanks in advance, Ivan.
UPD: running
pip install gevent --install-option="--libevent path_to_libevent"
gives the same result. -
Ivan Gromov over 12 yearsI need to install gevent to a separate Python environment, and it looks like the binary installer doesn't support it.
-
Denis over 12 yearsYou can try to get the egg gevent.googlecode.com/files/gevent-1.0b1-py2.7-win32.egg which is a zip file that contains 'gevent' package.
-
Piotr Dobrogost about 12 years@IvanGromov You can install package into virtualenv using binary installer. See Can I install Python windows packages into virtualenvs?
-
rakslice over 10 yearsCurrent gevent.org official downloads are listed at pypi.python.org/pypi/gevent#downloads
-
Piotr Dobrogost over 9 yearsBinary packages for gevent are available at lfd.uci.edu/~gohlke/pythonlibs/#gevent
-
anatoly techtonik over 9 yearsNo precompiled packages are available for
gevent 1.0.1
. =/