python - Pip invalid command egg_info -
i upgraded pip , broke things.
i tried running this:
sudo pip install -u ipython pyzmq requirement up-to-date: ipython in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages downloading/unpacking pyzmq downloading pyzmq-14.5.0.tar.gz (997kb): 997kb downloaded running setup.py (path:/private/tmp/pip_build_root/pyzmq/setup.py) egg_info package pyzmq usage info.... error: invalid command 'egg_info' ---------------------------------------- cleaning up... command python setup.py egg_info failed error code 1 in /private/tmp/pip_build_root/pyzmq storing debug log failure in /users/asselinpaul/.pip/pip.log ➜ ~ pip show setuptools --- name: setuptools version: 15.0 location: /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/setuptools-15.0-py2.7.egg requires:
more info:
➜ ~ python /library/frameworks/python.framework/versions/2.7/bin/python ➜ ~ pip /library/frameworks/python.framework/versions/2.7/bin/pip
curiously, setuptools not found installed.
➜ ~ setuptools setuptools not found ➜ ~ sudo pip install -u setuptools password: requirement up-to-date: setuptools in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/setuptools-15.0-py2.7.egg cleaning up...
i had same problem (also on mac). deleted (rm -r
) files , folders ~/env-backend/backend/lib/python2.7/site-packages
had setuptools in (ls | grep setup
).
then installed setuptools using curl instructions python.org (> curl https://bootstrap.pypa.io/ez_setup.py -o - | python
) , worked fine me thereafter.
Comments
Post a Comment