when in python IDE i print where pkg_resources is located it prints out this
>>> import pkg_resources
>>> print pkg_resources.__file__
/Library/Python/2.7/site-packages/setuptools-2.1-py2.7.egg/pkg_resources.pyc
but when I try to navigate to the .egg directory i get error
$ll setuptools-2.1-py2.7.egg/
ls: setuptools-2.1-py2.7.egg/: Not a directory
and when I try to use easy_install or when i try to use PIP to install a package or module. I get the below error
$ sudo easy_install cython
Password:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.macosx-10.9-intel/egg/pkg_resources.py", line 2701, in <module>
File "build/bdist.macosx-10.9-intel/egg/pkg_resources.py", line 572, in resolve
pkg_resources.DistributionNotFound: setuptools==0.8b2
and due to the above problem I am not able to run pylint
here are paths that are in my python paths:
>>> for each in sys.path: print each
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bdist_mpkg-0.5.0-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/howdoi-1.1.5-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests_cache-0.4.4-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests-2.1.0-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Pygments-1.6-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyquery-1.2.8-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cssselect-0.9.1-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.7.3-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-macosx-10.6-intel.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/smmap-0.8.2-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/async-0.6.1-py2.7-macosx-10.6-intel.egg
/Library/Python/2.7/site-packages/ExifRead-1.4.2-py2.7.egg
/Library/Python/2.7/site-packages/ansi2html-1.0.6-py2.7.egg
/Library/Python/2.7/site-packages/six-1.5.2-py2.7.egg
/Library/Python/2.7/site-packages/distribute-0.7.3-py2.7.egg
/Library/Python/2.7/site-packages/setuptools-2.1-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/sanjeevkumar/Library/Python/2.7/lib/python/site-packages
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/Library/Python/2.7/site-packages
reinstalled setuptools for python 2.6 and 2.7 now i am getting this error while trying to run cython
$cython
Traceback (most recent call last):
File "/usr/local/bin/cython", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.macosx-10.9-intel/egg/pkg_resources.py", line 2716, in <module>
File "build/bdist.macosx-10.9-intel/egg/pkg_resources.py", line 685, in require
def __getstate__(self):
File "build/bdist.macosx-10.9-intel/egg/pkg_resources.py", line 588, in resolve
The `plugin_env` should be an ``Environment`` instance that contains
pkg_resources.DistributionNotFound: Cython==0.20.1