14

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
  • 4,195
  • 9
  • 41
  • 57

6 Answers6

7

Download the precompiled packages here:

This worked for me, python 2.7 32 bit build.

Björn Lindqvist
  • 19,221
  • 20
  • 87
  • 122
7

Latest version has pre-compilled wheel:

pip install gevent==1.1rc1
Daniil Ryzhkov
  • 7,416
  • 2
  • 41
  • 58
7

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

Denis
  • 3,760
  • 25
  • 22
  • 1
    I need to install gevent to a separate Python environment, and it looks like the binary installer doesn't support it. – Ivan Gromov Feb 29 '12 at 13:40
  • You can try to get the egg http://gevent.googlecode.com/files/gevent-1.0b1-py2.7-win32.egg which is a zip file that contains 'gevent' package. – Denis Feb 29 '12 at 14:15
  • 5
    @IvanGromov You **can** install package into virtualenv using binary installer. See [Can I install Python windows packages into virtualenvs?](http://stackoverflow.com/q/3271590/95735) – Piotr Dobrogost May 12 '12 at 10:02
  • Current gevent.org official downloads are listed at https://pypi.python.org/pypi/gevent#downloads – rakslice Nov 10 '13 at 02:53
  • 3
    Binary packages for gevent are available at http://www.lfd.uci.edu/~gohlke/pythonlibs/#gevent – Piotr Dobrogost Oct 18 '14 at 17:39
1

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?

Community
  • 1
  • 1
Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366
1

If you're using 64bit Windows, download here, otherwise installation would fail.

laike9m
  • 18,344
  • 20
  • 107
  • 140
1

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
Tom
  • 22,301
  • 5
  • 63
  • 96