美文网首页
When trying to "pip install mysq

When trying to "pip install mysq

作者: 尘梦忘归 | 来源:发表于2018-11-25 12:06 被阅读0次

Environment: Ubuntu 18.04  Python Django

Screenshot as bellow:

Solution:

    you need to install the relative dependencies.

$ sudo apt-get install libmysqld-dev

$ sudo apt-get install libmysqlclient-dev

    then you could install mysqlclient again.

 pip install mysqlclient

References:

https://stackoverflow.com/questions/47870628/oserror-mysql-config-not-found-when-trying-to-pip-install-mysqlclient-dja

相关文章

网友评论

      本文标题:When trying to "pip install mysq

      本文链接:https://www.haomeiwen.com/subject/pfnrxqtx.html