Why is Python easy_install not working on my Mac?

后端 未结 7 636
甜味超标
甜味超标 2020-11-28 19:39

I have a Mac running Python 2.6. When I try to use easy_install I get this message:

/usr/bin/easy_install-2.6:7: UserWarning: Module pkg_resourc         


        
7条回答
  •  迷失自我
    2020-11-28 20:26

    Your setuptools installation is broken. The easy_install-2.6 script in your /usr/bin directory, is only a wrapper that loads the actual easy_install module in your Python installation, and the latter is missing. Presumably uninstalling pip either broke the pointer to it (usually in the form of a .pth file in your site-packages directory) or removed the whole package but didn't remove the /usr/bin/easy_install-2.6 wrapper script.

    Your best bet is to re-install setuptools from scratch again, by following the instructions on the setuptools PyPI page.

提交回复
热议问题