mysql_config not found when installing mysqldb python interface

前端 未结 30 1998
暗喜
暗喜 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:40

    The below worked for me on Ubuntu 12.04 LTS:

    apt-get install libmysqlclient-dev python-dev
    

    All though it worked, i still went ahead to do the below:

    export PATH=$PATH:/usr/local/mysql/bin/
    

提交回复
热议问题