Hier sind die Schritte, die ich folgte. Ich donot wollen Pythn2.6 stören, die bereits auf dem Server, aber ich möchte Python 2.7 separatlyPython 2.7 Centos Installation mit MYSQLDB
1) sudo yum install python27 python27-pip
2) sudo yum -y install python27-devel libxslt-devel libffi-devel openssl-devel
3) sudo yum install python27-MySQL-python
ich folgende Fehlermeldung bin installieren bekommen MySQLdb bei der Installation
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ixxaPu/MySQL-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ixxaPu/MySQL-python/
Bitte helfen Sie mir beheben Sie es oder wie das Problem zu debuggen
Arbeitete perfekt für mich versuchen, Python auf Centos7/Plesk einzurichten. Musste Mariadb-devel installieren, –