pip install mysql-python
安装Mysql-python时,报错,先看下错误内容:
ERROR: Command errored out with exit status 1:
command: /root/training/Python-3.7.0/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wbf036ga/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wbf036ga/mysql-python/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-ntpyg1z0
cwd: /tmp/pip-install-wbf036ga/mysql-python/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-wbf036ga/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-install-wbf036ga/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Ch