python2 and python3 are incompatible , in python2, the linked database uses mysqldb, but in python3 it is pyMysql .
1. First dos enter the python installation directory, find and enter the Scripts folder
2. Use the pip installation command:
python3 pip.exe install pyMysql
After successful installation, as follows:
3. Test:
test was successful,