从 19.10 升级以来,Python peewee 无法再与 MySQL 通信:
raise ImproperlyConfigured('MySQL driver not installed!')
peewee.ImproperlyConfigured: MySQL driver not installed!
但所有要求均已安装:peewee
,,mysqlclient
pysocks
还libmysqlclient-dev, libmysqlclient21
更新:
mysql --version
mysql Ver 15.1 Distrib 10.3.17-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
使用 Mariadb,运行良好。
mariadb.service - MariaDB 10.3.17 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since
这里有什么问题?
答案1
修复者:
pip3 install pymysql
显然mysqlclient
已经不够了。