mysql_config not found when installing mysqldb python interface

前端 未结 30 2029
暗喜
暗喜 2020-11-22 06:56

I am trying to get a Python script to run on the linux server I\'m connected to via ssh. The script uses mysqldb. I have all the other components I need, but when I try to i

30条回答
  •  不知归路
    2020-11-22 07:33

    Step1:-Install Python3 & Python3-dev Both

    sudo apt-get install python3 python3-dev
    

    Step2:- Install Python & Mysql Connector

    sudo apt-get install libmysqlclient-dev
    

    step3:- Install python mysql client

    sudo apt-get install mysqlclient
    

    This will Solve your Problem

提交回复
热议问题