Skip to content

Instantly share code, notes, and snippets.

Created November 8, 2015 16:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
A Solution For 'pkg_resources.DistributionNotFound six' Problem

Today i have decided to write some unit test on JavaScript via Jasmine, but i encountered the following exception stack trace.

Traceback (most recent call last):
  File "/usr/local/bin/jasmine", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/", line 2603, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
  pkg_resources.DistributionNotFound: six

Although Six module was on my Python package directory, it could not be found. Upgrading setuptools via pip may help to solve this problem:

[sudo] pip install --upgrade setuptools
Copy link

mcymo commented Jan 28, 2017

Just wanted to say that this suggestion just solved the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment