为python安装mysqlclient

时间:2018-02-22 14:38:34

标签: python mysql

我在本地安装了mysql-server(5.7.21)。然后我尝试安装mysqlclient,但收到错误"mysql_config: not found"。我发现我应该安装libmysqlclient-dev。我跑sudo apt-get install libmysqlclient-dev并收到新错误:

The following packages have unmet dependencies:
 libmysqlclient-dev : Depends: libmysqlclient20 (= 5.7.21-0ubuntu0.16.04.1) but 5.7.21-1ubuntu16.04 is to be installed

如何解决这种依赖性冲突?

0 个答案:

没有答案