How to install mysql-python on Linux

For RPM based:

$ sudo yum -y install MySQL-python

For Ubuntu:

Install pip and upgrade to the latest version:

$ sudo apt install python-pip
$ sudo pip install -U pip

Next, install the required development packages:

$ sudo apt install python-dev libmysqlclient-dev


$ sudo pip install MySQL-python

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...