Difference between revisions of "MySQLdb installation"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "Be sure you have pip installed on your machine using this command:<br /> *sudo easy_install pip<br /> If you already have pip installed, it’d be a good idea to upgrade it no...")
 
 
Line 4: Line 4:
 
*sudo pip install pip --upgrade<br />
 
*sudo pip install pip --upgrade<br />
 
Build the dependencies for python-mysqldb libraries:<br />
 
Build the dependencies for python-mysqldb libraries:<br />
*sudo apt-get build-dep python-mysqldb<br />
+
*sudo apt-get install python-dev libmysqlclient-dev python-mysqldb<br />
 
Install the Python MySQL libraries:<br />
 
Install the Python MySQL libraries:<br />
 
*sudo pip install MySQL-python<br />
 
*sudo pip install MySQL-python<br />

Latest revision as of 08:42, 25 June 2015

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