Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (22.5k points)
edited by

I tried to run python script in linux server and connected through ssh.

I have tried to use

python setup.py install

and getting the following error regarding mysql_config

sh: mysql_config: command not found

Traceback (most recent call last):

  File "setup.py", line 15, in <module>

    metadata, options = get_config()

  File "/usr/lib/python2.5/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config

    libs = mysql_config("libs_r")

  File "/usr/lib/python2.5/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config

    raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

1 Answer

0 votes
by (11.1k points)
edited by

The required command in  CentOS 7 is

yum install MySQL-community-devel instead yum install MySQL-devel

Interested in SQL? Check out this SQL Certification by Intellipaat.

Related questions

0 votes
1 answer
asked Nov 21, 2020 in SQL by Appu (6.1k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...