mysql_config not found when installing mysqldb python interface

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

    As actual error is

    gcc ... -I/usr/include/python2.7 ...
    
    _mysql.c:29:20: error: Python.h: No such file or directory
    

    and If you can't install python-dev or python-devel packages, you may download archive with needed version of python sources from http://hg.python.org/ and place headers files in proper folder for include

提交回复
热议问题