flask_sqlalchemy连接出错解决办法

You can install mysqlclient with pip

If using Python3, try this:

pip3 install mysqlclient

or in Python2

pip install mysqlclient

参考
https://stackoverflow.com/questions/53024891/modulenotfounderror-no-module-named-mysqldb

https://blog.csdn.net/daiqinge/article/details/88529195

http://cache.baiducontent.com/c?m=GU5AcImr7REPWdrh3-jaVP76qUiZ2f2CrN_Iu-iJy0MMGpmlA3l0ILFZEqUYy0aFb9agdght54Tk36zjFBdugJ3Rff4lIMwvCAc5Xrw-PVqgWjYAL9dTDvcanC8gjgSw4nmwRST7ZrL34psNeqbthq&p=aa769a479c934eac58ea8f3d5400cd&newp=b4769a47c88c0ae934bd9b7d0d118e231610db2151d4da156b82c825d7331b001c3bbfb423291b07d1c67c6206ab4257eaf03d743d0923a3dda5c91d9fb4c5747996687f3670&s=cfcd208495d565ef&user=baidu&fm=sc&query=dialect+%2B+driver&qid=c9375d5700063549&p1=5

你可能感兴趣的:(python)