[root@master-node ~]# pip3 install mysql2ch
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting mysql2ch
Downloading
https://pypi.doubanio.com/packages/93/fc/033f39f3570139d3e1ddc740059c9fefb1a38f21968f3bff0aa860dc5269/mysql2ch-0.0.3.tar.gzCollecting mysql-replication (from mysql2ch)
Downloading
https://pypi.doubanio.com/packages/e3/54/8c496e300d610299bf168e2068dc10a64b66b299cbe596a27aac5d5b3e7b/mysql-replication-0.21.tar.gzCollecting clickhouse-driver (from mysql2ch)
Downloading
https://pypi.doubanio.com/packages/54/ae/7b6d40a774760e7192888cc9855fea834e3ff4f266fa8c1962c266555fb1/clickhouse_driver-0.1.3-cp36-cp36m-manylinux1_x86_64.whl (595kB)
100% |████████████████████████████████| 604kB 4.2MB/s
Collecting redis (from mysql2ch)
Downloading
https://pypi.doubanio.com/packages/f0/05/1fc7feedc19c123e7a95cfc9e7892eb6cdd2e5df4e9e8af6384349c1cc3d/redis-3.4.1-py2.py3-none-any.whl (71kB)
100% |████████████████████████████████| 71kB 42.4MB/s
Collecting mysqlclient (from mysql2ch)
Downloading
https://pypi.doubanio.com/packages/d0/97/7326248ac8d5049968bf4ec708a5d3d4806e412a42e74160d7f266a3e03a/mysqlclient-1.4.6.tar.gz (85kB)
100% |████████████████████████████████| 92kB 3.0MB/s
Complete output from command python
setup.py egg_info:
/bin/sh: mysql_config: command not found
/bin/sh: mariadb_config: command not found
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-gl8l1_on/mysqlclient/
setup.py", line 16, in <module>
metadata, options = get_config()
File "/tmp/pip-build-gl8l1_on/mysqlclient/
setup_posix.py", line 61, in get_config
libs = mysql_config("libs")
File "/tmp/pip-build-gl8l1_on/mysqlclient/
setup_posix.py", line 29, in mysql_config
raise EnvironmentError("%s not found" % (_mysql_config_path,))
OSError: mysql_config not found
----------------------------------------
Command "python
setup.py egg_info" failed with error code 1 in /tmp/pip-build-gl8l1_on/mysqlclient/
报错如上,该当如何?