(zanhu_env) [root@localhost zanhu]# pip3 install -r requirements.txt
ollecting mysqlclient==1.4.2.post1
Downloading http://mirrors.aliyun.com/pypi/packages/f4/f1/3bb6f64ca7a429729413e6556b7ba5976df06019a5245a43d36032f1061e/mysqlclient-1.4.2.post1.tar.gz (85 kB)
|████████████████████████████████| 85 kB 40.7 MB/s
ERROR: Command errored out with exit status 1:
command: /home/zanhu/zanhu_env/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-tvuasq6b/mysqlclient/setup.py’"’"’; file=’"’"’/tmp/pip-install-tvuasq6b/mysqlclient/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-7n4cc2mx
cwd: /tmp/pip-install-tvuasq6b/mysqlclient/
Complete output (10 lines):
/bin/sh: mysql_config: 未找到命令
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-tvuasq6b/mysqlclient/setup.py”, line 16, in
metadata, options = get_config()
File “/tmp/pip-install-tvuasq6b/mysqlclient/setup_posix.py”, line 51, in get_config
libs = mysql_config(“libs”)
File “/tmp/pip-install-tvuasq6b/mysqlclient/setup_posix.py”, line 29, in mysql_config
raise EnvironmentError("%s not found" % (_mysql_config_path,))
OSError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.