0

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?

asked May 9, 2016 at 10:13
1
  • What is the error? Commented May 9, 2016 at 10:36

1 Answer 1

2

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

answered May 9, 2016 at 10:50
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.