“python setup.py egg_info” failed with error code

2019-01-28 11:44发布

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

标签: pip
3条回答
Lonely孤独者°
2楼-- · 2019-01-28 12:05

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

pip install --upgrade setuptools

pip install ez_setup

Ref here

查看更多
手持菜刀,她持情操
3楼-- · 2019-01-28 12:06

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

查看更多
Juvenile、少年°
4楼-- · 2019-01-28 12:10

Worked for me:

easy_install distribute
pip install --upgrade distribute
查看更多
登录 后发表回答