I have searched the web and this site thoroughly for a concise, actionable answer and cannot find one that has helped so far.
I am a newbie working my way through "Learn Python the Hard Way" for the past few months. My Macbook came pre-installed with Python 2.6 and early on I installed Python 2.7.5 which is what I am using to run all my scripts and indeed is what runs whenever I type "Python" inside the shell or to run any scripts.
However, I recently installed pip to install some packages such as lpthw.web 1.1 and found that my "import web" statement would not run as Python was not finding it. Why? Because the package had been installed under the original Mac OS X folder structure for version 2.6, not the version I'm running. By the way, if print sys.path it does indeed point to the newest installation (2.7.5)
So how do I get pip to install packages to the write location for Python 2.7.5? And, if necessary, how do I uninstall pip and start fresh with pip -- getting it to know that I want it to install packages for 2.7.5 not older versions found on my Mac? (Searching for uninstall pip not surprisingly only yields results for how to use pip to uninstall packages).
Thanks in advance.