我的os大部分包使用macport管理,直接pip安装存在问题
sudo pip install gevent
出错提示
command ‘gcc-4.2′ failed with exit status 1
下载源代码包安装
wget http://pypi.python.org/packages/source/g/gevent/gevent-0.13.6.tar.gz tar -zxvf gevent-0.13.6.tar.gz cd gevent-0.13.6 sudo python setup.py install -I /opt/local/include -L /opt/local/lib #指定默认的macport路径