“python setup.py egg_info” failed with error code 1

前端 未结 4 1735
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 17:36

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/v

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-11 17:53

    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
    

提交回复
热议问题