How to Install Python Mysqldb Module Using Pip?
How Can I Install the Mysqldb Module for Python Using Pip? 2 20 Answers It's Easy to Do, but Hard to Remember the Correct Spelling: Pip Install Mysqlclient If...
How can I install the MySQLdb module for Python using pip?
20 Answers
It's easy to do, but hard to remember the correct spelling:
pip install mysqlclient
If you need 1.2.x versions (legacy Python only), use pip install MySQL-python
Note: Some dependencies might have to be in place when running the above command. Some hints on how to install these on various platforms:
Must Read
Ubuntu 14, Ubuntu 16, Debian 8.6 (jessie)
sudo apt-get install python-pip python-dev libmysqlclient-dev