I recently upgraded to Mountain Lion, and most of my Python tools are messed up. I downloaded the new version of Xcode and downloaded the command line tools. Python itself works fine, that is, I can open python (2.7) from the command line and use it.
When I try to do anything else, I get
ImportError: no module named pkg_resources.
Example, when using mercury:
Traceback (most recent call last): File "/usr/local/bin/hg", line 4, in <module> import pkg_resources ImportError: No module named pkg_resources
I read on this page: There is no module named pkg_resources that can be fixed by reinstalling setuptools, so I tried to follow the directions at http://pypi.python.org/pypi/setuptools#id4 . I downloaded setuptools-0.6c11-py2.7.egg, made "sudo sh setuptools-0.6c11-py2.7.egg" and received no errors.
I reinstalled mercurial using easy_install , but now something else is wrong and I get the same message as above when I try to use easy_install .
Traceback (most recent call last): File "/usr/bin/easy_install-2.7", line 7, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources
I know this question has been answered, but none of the solutions seem to work for me. If there is anything else I can provide to help answer this problem, I will be happy to do it. I bet this is some kind of simple problem with my path, or conflicting versions, or something else? I just really would like to go upstairs again. Thanks.