python - PyCharm import MySQL -


i trying

import mysqldb mdb 

on pycharm , error:

importerror: no module named mysqldb 

from pycharm-preference, cannot find mysqldb import. pymysql installed on pycharm though. suggestions ? thank much.

enter image description here enter image description here

you can use pymysql installing through pycharm instead of mysqldb. it's drop-in replacement it.

documentation: https://github.com/pymysql/pymysql


Comments

Popular posts from this blog

php - isset function not working properly -

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -