Install MySQLdb on osx

Here is the error message I got.

ImportError: No module named MySQLdb

Below is how you install such module for your python script.

brew install mysql
brew install python
sudo easy_install pip
sudo pip install MySQL-python

Depending on your file permissions at various directories, you can determine the use of sudo.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s