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

前端 未结 10 701
灰色年华
灰色年华 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 20:00

    Found this answer when looking for help installing on Snow Leopard, posting this in case someone else comes this way with the same problem.

    I had libevent installed via macports.

    export CFLAGS=-I/opt/local/include export LDFLAGS=-L/opt/local/lib sudo pip install gevent

提交回复
热议问题