How to install gevent on Windows?

前端 未结 6 1049
抹茶落季
抹茶落季 2021-02-05 15:41

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

相关标签:
6条回答
  • 2021-02-05 15:52

    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?

    0 讨论(0)
  • 2021-02-05 15:55

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

    0 讨论(0)
  • 2021-02-05 16:02

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

    0 讨论(0)
  • 2021-02-05 16:07

    Latest version has pre-compilled wheel:

    pip install gevent==1.1rc1
    
    0 讨论(0)
  • 2021-02-05 16:11

    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
    
    0 讨论(0)
  • 2021-02-05 16:15

    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.

    0 讨论(0)
提交回复
热议问题