环境: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
成功。
Python程序员最常犯的十个错误:http://www.linuxdiyf.com/linux/16441.html
ubuntu14.04在Vim上配置Python开发环境:http://www.linuxdiyf.com/linux/15967.html
在Ubuntu下配置Python开发环境:http://www.linuxdiyf.com/linux/13748.html
Ubuntu下使用Eclipse和PyDev搭建完美Python开发环境:http://www.linuxdiyf.com/linux/6257.html
提高Python运行效率的六个窍门:http://www.linuxdiyf.com/linux/12569.html