You are not logged in.
I am trying to run a program where I need to use MYSQLDB using "import MySQLdb", while running it I am getting an error
ModuleNotFoundError: No module named 'MySQLdb'
Python version I am using:
Python 3.7.2
Linux version I am using
Linux archserv 4.20.7-arch1-1-ARCH #1 SMP PREEMPT Wed Feb 6 18:42:40 UTC 2019 x86_64 GNU/Linux
while I am trying to install mysqldb, I am getting the target not found error. How can I install the module?
Offline
Have a look at this.
Offline
Make sure you have the mysql-python package installed. If you don't want to use the version in the Arch repos, you can install mysql-python via pip.
Offline