How can I install the Python library 'gevent' on Mac OS X Lion

前端 未结 10 715
灰色年华
灰色年华 2020-12-22 19:03

Python library gevent, version 0.13.6 (the current version on PyPI) will not pip install on OS X Lion, Python 2.7 (and probably others.) It works f

10条回答
  •  星月不相逢
    2020-12-22 19:55

    In case you install all from sources and use csh the following works on mac os 10.9

    1. download latest stable http://libevent.org/ libevent-2.0.21-stable

      • ./configure
      • make
      • sudo make install
    2. virtualenv env

    3. source env/bin/activate.csh

    4. setenv CFLAGS "-I /usr/local/include -L /usr/local/lib"

    5. pip install gevent

提交回复
热议问题