Installing MySQL-python

前端 未结 8 627
夕颜
夕颜 2020-11-28 19:58

I got the below failure while trying to get MySQL-python installed on my Ubuntu/Linux Box.From the below it seem like the issue is sh: mysql_config: not found C

相关标签:
8条回答
  • 2020-11-28 20:45
    yum install mysql-devel
    

    It worked for me.

    0 讨论(0)
  • 2020-11-28 20:46

    Python or Python3 with MySQL, you will need these. These libraries use MySQL's connector for C and Python (you need the C libraries installed as well), which overcome some of the limitations of the mysqldb libraries.

       sudo apt-get install libmysqlclient-dev
       sudo apt-get install python-mysql.connector
       sudo apt-get install python3-mysql.connector
    
    0 讨论(0)
提交回复
热议问题