I am fairly new to python and I am trying to write a script that would read and write to a mysql table. I have installed mysql-connector on python3 and I got the script working yesterday. It successfully read and wrote data to mysql. When I ran it today, this error came up. ModuleNotFoundError: No module named 'mysql'
I already checked the following things:
- mysql-connector is installed
- I don't have any user-defined module named mysql
- not running on virtualenv
Does someone have any idea on what is happening?