Tengo una Mac con Python 2.6. Cuando trato de utilizar easy_install
me sale este mensaje:¿Por qué Python easy_install no funciona en mi Mac?
/usr/bin/easy_install-2.6:7: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
from pkg_resources import load_entry_point
/usr/bin/easy_install-2.6:7: UserWarning: Module site was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
from pkg_resources import load_entry_point
Traceback (most recent call last):
File "/usr/bin/easy_install-2.6", line 10, in <module>
load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 271, in load_entry_point
return False
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 2173, in load_entry_point
deps = []
ImportError: Entry point ('console_scripts', 'easy_install') not found
Estoy muy confundido por esto y me gustaría saber cómo puedo solucionar este problema. Anteriormente no recibí este mensaje, luego de instalar pip
y desinstalarlo, easy_install ya no funciona. Me preguntaba cómo podría solucionar esto, o restaurar la configuración predeterminada de Python o easy_install en Mac.
Si está utilizando [Homebrew] (http://mxcl.github.com/homebrew/) que puede hacer 'sudo cerveza instalar distribute' –
@DanaWoodman Eso no es una fórmula homebrew válida. – Wylie
Parece que 'distribute' ahora viene con la receta de python, pero los scripts se guardan en'/usr/local/share/python/', por lo que puede estar recogiendo una versión anterior de easy_install enlazada en'/usr/local/bin '. Ver: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python –