Skip to content

Instantly share code, notes, and snippets.

Embed
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/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", 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
@mcymo

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.