Install pyMysql in python3 under Windows system

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,

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324809800&siteId=291194637