How to install gevent on Windows?

24,476

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
Share:
24,476

Related videos on Youtube

Ivan Gromov
Author by

Ivan Gromov

Updated on May 18, 2020

Comments

  • Ivan Gromov
    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 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.

  • Ivan Gromov
    Ivan Gromov over 12 years
    I need to install gevent to a separate Python environment, and it looks like the binary installer doesn't support it.
  • Denis
    Denis over 12 years
    You 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
    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
    rakslice over 10 years
    Current gevent.org official downloads are listed at pypi.python.org/pypi/gevent#downloads
  • Piotr Dobrogost
    Piotr Dobrogost over 9 years
    Binary packages for gevent are available at lfd.uci.edu/~gohlke/pythonlibs/#gevent
  • anatoly techtonik
    anatoly techtonik over 9 years
    No precompiled packages are available for gevent 1.0.1. =/