ubuntu 安装python mysql模块

Installation

Starting with a vanilla Lucid install , install pip and upgrade to the latest version:

apt-get install python-pip
pip install -U pip

  

Next, install the required development packages:

apt-get install python-dev libmysqlclient-dev

 

then

/usr/local/bin/pip install MySQL-python

 

should complete successfully.

posted on 2015-03-31 16:33  honsen  阅读(252)  评论(0编辑  收藏  举报

导航