从0开始tornado开发环境(ubuntu)

#python mysqldb
#没有virtualenv 时:apt-get install python-mysqldb
#virtualenv时:easy_install MySQL-python
apt-get install python-dev
apt-get -y install mysql-server mysql-client libmysqlclient-dev mytop
#pycurl
apt-cache depends python-pycurl
aptitude install python-pycurl-dbg

#tornado

easy_install tornado

#pip
easy_install pip

#virtualenv / virtualbox
#sudo apt-get install python-virtualenv或者 sudo pip install virtualenv
#试了有报错 pip install virtualenv
apt-get install python-virtualenv

使用方法:
http://www.nowamagic.net/academy/detail/1330228

#curl-config 报错解决
http://www.douban.com/note/205693536/

apt-get install python-dev

#mysql-config not found
http://blog.163.com/kylandzwr_39/blog/static/18028503920113219564713/
apt-get -y install mysql-server mysql-client libmysqlclient-dev mytop

你可能感兴趣的:(tornado)