No module named 'mysql' in python code example Example: ImportError: No module named mysql.connector sudo pip install mysql-connector-python