Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

@mcymo 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