Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (47.6k points)

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

1 Answer

0 votes
by (106k 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

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...