when trying to install flask-mysql i get the following error msg:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/2n/pv5q13p10dz6rg8qlh3vhxv00000gn/T/pip-build-bh92ufyu/MySQL-python
I ran into a similar problem when trying to run PostgreSQL in a Alpine Docker container.
Apparently some base libraries are not included in the Alpine image for psycopg2
to work properly and therefore need to be installed separately on the image. For me the problem was resolved by adding the following line to my Dockerfile
:
RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev