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

前端 未结 10 722
灰色年华
灰色年华 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:37

    After a while, I realized that the paths for the CFLAGS variable mentioned above works when installing libevent from port, but not from brew. The following worked for me (on OSX Mavericks):

    $ brew install libevent
    $ export CFLAGS="-I /usr/local/Cellar/libevent/2.0.21/include -L /usr/local/Cellar/libevent/2.0.21/lib"
    $ pip install gevent
    

提交回复
热议问题