Install mysql connector package to execute import package in Virtual Studio Code
- Navigate to python installation directory
- List the installed packages
python.exe -m pip list
- If there is no mysql connection, install using this command
python.exe -m pip install mysql-connector-python