python 使用 aiomysql報異常,no 「_auth」模塊

  aiomysql依賴於pymysql ,「_auth」是pymysql的模塊。需要檢查一下自己的pymysql版本,更新爲最新的版本,一般不會出問題: 引入aiomysql: async def main(loop): # 初始化數據庫連接池 pool = await aiomysql.create_pool(host='127.0.0.1', port=3306,
相關文章
相關標籤/搜索