No module named MySQLdb

318    Asked by Aalapprabhakaran in Python , Asked on Apr 7, 2021

I am using Python version 2.5.4 and install MySQL version 5.0 and Django. Django is working fine with Python, but not MySQL. I am using it in Windows Vista. Getting error “no module named 'mysqldb'”.

To run MySQL with Python you need to use one of the following commands. And one important node here, there is no MySQLdb for python 3.x

pip install mysql-python 
or
pip install mysqlclient

Your Answer

Interviews

Parent Categories