ubuntu下安装gevent和mysql-python

sudo apt-get install python-dev

sudo apt-get install libevent-dev
 

sudo apt-get install python-setuptools


sudo easy_install greenlet

sudo easy_install gevent
安装步骤:

1、sudo apt-get install python-setuptools

2、sudo apt-get install libmysqld-dev

3、sudo apt-get install libmysqlclient-dev

4、sudo apt-get install python-dev

5、sudo easy_install mysql-python

 

测试下:

在python交互式窗口,import MySQLdb 试试,不报错的话,就证明安装好了。

你可能感兴趣的:(ubuntu下安装gevent和mysql-python)