Rhel 8 and Import Mysqldb

I have a .py-file saying import MySQLdb. pip3 install MySQL-python says ModuleNotFoundError: No module named 'ConfigParser' even when pip3 install ConfigParser says "Requirement already satisfied: ConfigParser in /usr/local/lib/python3.9/site-packages (5.2.0)". I use RHEL 8. I guess I could install system on Ubuntu and manually copy files, but is there "right" way to do this?

1
Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article