I did a lot of research but couldn't find any solution for this I keep getting this error:
Traceback (most recent call last):
File "test.py", line 2, in <module>
import MySQLdb
ImportError: No module named 'MySQLdb'
I installed this as well: and got this.
yesh@Yesh:~/DBMS$ sudo apt-get install python-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-mysqldb is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Someone please help me with this. I guess it has something to do with environment variables. I don't know exactly what that is. Thanks in advance