mysqlclient icon indicating copy to clipboard operation
mysqlclient copied to clipboard

mysqlclient and _mysql mismatch

Open abelgvidal opened this issue 10 years ago • 1 comments

Upgrading debian broke my mysqlclient in two apps (Flask and Django). It was working like a charm before.

ImportError: this is MySQLdb version (1, 3, 7, 'final', 1), but _mysql is version (1, 2, 3, 'final', 0)`

I have tried installing from repo but still does not work.

How can I install mysqlclient for matching this _mysql version?

lsb_release -a
No LSB modules are available.
Distributor ID: Debian 
Description:    Debian GNU/Linux 8.3 (jessie)
Release:    8.3
Codename:   jessie


mysql  Ver 14.14 Distrib 5.5.47, for debian-linux-gnu (x86_64) using readline 6.3

abelgvidal avatar Feb 03 '16 20:02 abelgvidal

Do you use virtualenv? It's best way to separate your app's environment from system Python.

methane avatar Feb 04 '16 00:02 methane