Can't install on OS X: pkg_resources.DistributionNotFound

I’m trying to install mitmproxy on OS X El Capitan 10.11.5 using pip, the installation seems to be okay but then if I try to run mitmproxy I get this:

Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 5, in <module> from pkg_resources import load_entry_point File "build/bdist.macosx-10.9-intel/egg/", line 2701, in <module> if reqs: File "build/bdist.macosx-10.9-intel/egg/", line 572, in resolve #raise DistributionNotFound(msg % req) pkg_resources.DistributionNotFound: Pillow>=3.0.0,<3.1

I feel like something is horribly wrong with my installation but have no idea how to fix it. Help or pointers are much appreciated.

@seanduffy_uk Yes, your pip is broken, but this is completely unrelated to mitmproxy.

Try these links for possible solutions:

If that doesn’t solve it, you could also try the #pypa IRC channel on freenode.

Thought it might be a pip issue, thanks for the help!