0 votes
1 view
in DevOps and Agile by (47.8k points)

 How can I install the MySQLdb module for Python using pip?

1 Answer

0 votes
by (107k points)

You can use the following command to install pip:-

pip install mysqlclient

In Ubuntu 14, Ubuntu 16, Debian 8.6 (Jessie) you can use the following command:-

sudo apt-get install python-pip python-dev libmysqlclient-dev

Fedora 24:

sudo dnf install python python-devel mysql-devel redhat-rpm-config gcc

If you are a Mac OS user then you can use the below-mentioned code:-

brew install mysql-connector-c

Welcome to Intellipaat Community. Get your technical queries answered by top developers !