I am having a lot of trouble with the mysql-connector-python package. On my work laptop the package works every time without fail. However, on my personal laptop it seems to be completely random when it works. I am running a Jupyter Notebook in VS Code and using Python 3.6.2.
For example,
First I installed the mysql-connector package in the terminal with:
pip install mysql-connector-python
Then I import the package with this command: import mysql.connector
Although, when I try to import the package I get this error:
ModuleNotFoundError: No module named 'mysql'
If I restart my computer and then run the import it will work but after restarting the Jupyter kernel or selecting a different kernel, it will stop working until I restart my computer again.
I see this is a problem for other people too but can't seem to find the right fix for my issue. Does anybody know what's going on?
