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.

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。