mysql_config not found when installing mysqldb python interface

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

    On Red Hat I had to do

    sudo yum install mysql-devel gcc gcc-devel python-devel
    sudo easy_install mysql-python
    

    Then it worked.

提交回复
热议问题