安装flask_mysqldb出现报错问题解析
安装 mysqldb (pip3 install Flask-MySQLdb)报错 EnvironmentError: mysql_config not found ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
或者出现 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
解决方案:
参考Github上的答案(https://github.com/scrapy/scrapy/issues/2115#issuecomment-231849637),成功解决。
with Python 3, you'll need
sudo apt-get install python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python3-pip
with Python 2, you'll need
sudo apt-get install python-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip
酒是穿肠毒药,色是刮骨钢刀,财是惹祸根苗,气是雷烟火炮。
不过,无酒毕竟不成席,无色世上人渐稀,无财何人早早起,无气处处惹人欺。
饮酒不醉量为高,见色不迷真英豪,不义之财君莫取,忍气饶人祸自消。
酒色财气四堵墙,人人都在里边藏,谁若跳到墙外边,不是神仙也寿长。
君听我一言:做人,量体裁衣。