Ubuntu 部署Python开发环境
一、开发环境包安装
sudo apt-get install git-core sudo apt-get install libxml2-dev sudo apt-get install libxslt-dev sudo apt-get install mysql-client sudo apt-get install mysql-server sudo apt-get install libmysqlclient-dev sudo apt-get install python-dev sudo apt-get install python-setuptools sudo apt-get install swig sudo apt-get install python-imaging sudo apt-get install python-m2crypto sudo apt-get install gettext python-iso8601
二、安装pip
#Install pip and virtualenv for Ubuntu 10.10 Maverick and newer $ sudo apt-get install python-pip python-dev build-essential $ sudo pip install --upgrade pip $ sudo pip install --upgrade virtualenv #For older versions of Ubuntu #Install Easy Install $ sudo apt-get install python-setuptools python-dev build-essential #Install pip $ sudo easy_install pip #Install virtualenv $ sudo pip install --upgrade virtualenv
安装MySQL扩展包:sudo pip install mysql-python