环境:ubuntu14.04,python2.7
>>> import gevent
__main__:1: UserWarning: libevent version mismatch: system version is '2.0.21-stable' but this gevent is compiled against '2.0.16-stable'
根据提示好像是gevent和libevent的版本不和,重装libevent没有用;
想想之前gevent是用包安装的,可能版本没有对应,所以重装gevent:
sudo pip uninstall gevent
sudo pip install gevent
成功