Skip to content

Instantly share code, notes, and snippets.

@baybatu
Created November 8, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baybatu/73f3bd6771ed22bcc74a to your computer and use it in GitHub Desktop.
Save baybatu/73f3bd6771ed22bcc74a to your computer and use it in GitHub Desktop.
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
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