MySQLdb installation

From RHS Wiki
Jump to navigation Jump to search

Be sure you have pip installed on your machine using this command:

  • sudo easy_install pip

If you already have pip installed, it’d be a good idea to upgrade it now:

  • sudo pip install pip --upgrade

Build the dependencies for python-mysqldb libraries:

  • sudo apt-get install python-dev libmysqlclient-dev python-mysqldb

Install the Python MySQL libraries:

  • sudo pip install MySQL-python