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

前端 未结 4 1733
被撕碎了的回忆
被撕碎了的回忆 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:46

    Try installing python-dev, libpython-dev, libevent-dev and try again...

    0 讨论(0)
  • 2020-12-11 17:47

    I met the same problem when install matplotlib and following command workd:

    pip install --upgrade setuptools
    
    pip install ez_setup
    

    Ref here

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-11 18:00

    Worked for me:

    easy_install distribute
    pip install --upgrade distribute
    
    0 讨论(0)
提交回复
热议问题