Python3扭曲的Mysql错误
问题描述:
所以今天我决定开始一个新项目(长篇故事)。 而在这个项目中,我需要MySQL连接。 我目前使用python 3.6,并且希望使用扭曲,所以我也做进口模块如下:Python3扭曲的Mysql错误
from twisted.enterprise import adbapi
唯一的问题是,因为我使用python3正确的,所以我需要我不能使用MySQLdb的mysqlclient,事情是我怎样才能使用它作为MySQL DB模块?因为在这里该连接线:
self.Connection = adbapi.ConnectionPool("mysqlclient", db = Config['Database'], port = 3306, user=Config['User'], passwd = Config['Password'], host = Config['Host'])
给我这个以下错误:ModuleNotFoundError: No module named 'mysqlclient'
如果有人可以帮助我心存感激。 祝您有美好的一天/晚上。
答
你必须安装你想使用的任何MySQL客户端库。