Tag Archives: flash_mysqldb Install error

How to Solve Python flash_mysqldb Install error

Install mysqldb (pip3 install Flask-MySQLdb)error: 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.

Or error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

 

Solution:

Refer to the answer on Github (https://github.com/scrapy/scrapy/issues/2115#issuecomment-231849637), successfully solved.

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