Getting Oauth2 to work with Python on a Mac

I am ataking a coursera course in Data Science and having trouble getting the prelim check for the first assignment to run without errors.  Here are the details  any help is appreciated! Using Mac OS 10.8.5 Which Python returns: /Library/Frameworks/Python.framework/Versions/2.7/bin/python Running the first assignment script after updating teh API calls results in this: $ python twitterstream.py > output.txt Traceback (most recent call last):   File “twitterstream.py”, line 1, in <module>     import oauth2 as oauth ImportError: No module named oauth2 So I go back double check my oauth2 installation $ pip install oauth2 Traceback (most recent call last):   File “/usr/local/bin/pip”, line 5, in     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     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: pip==1.5.2 So now I investigate PIP: $ which pip /usr/local/bin/pip Not even sure what that means, but ...
Source: Mr. Hassle's Long Underpants - Category: Emergency Medicine Authors: Tags: Uncategorized Source Type: blogs