I am trying to install python-mysqldb on Raspberry Pi 2.
The sequence of commands I am using is as follows,
sudo apt-get install python-dev libmysqlclient-dev build-essential python-dev
Above runs successfully. However following command throws an error.
pip install MySQL-python
Can someone please help me with the issue?
-
What is the error?Steve Robillard– Steve Robillard2016年05月09日 10:36:04 +00:00Commented May 9, 2016 at 10:36
1 Answer 1
Why not get it from the repositories?
I would always do that when possible rather than downloading from a third party site.
sudo apt-get install python-mysqldb
To find mysql packages related to Python try
apt-cache search mysql|grep python