[Pythonmac-SIG] How to remove Python from my Mac?
Christopher Barker
Chris.Barker at noaa.gov
Sat Apr 25 01:08:20 CEST 2009
Ethan Herdrick wrote:
> Hi - I'm getting started with Python and am getting ImportError
> trouble with the first step of the very simple tutorial for web.py.
> I'm suspecting that the fact that I have two installations of Python -
> one that my Mac came with and one that I installed from
> python-2.6.2-macosx2009-04-16.dmg which I got from
> python.org/download/ - might be the problem.
that shouldn't be a problem, but you do need to make sure you are
running the one you think you are. "which python" will help you know if
you PATH is set right.
> Anyway, I'd really be happier if I could wipe all python stuff -
> including things like easy_install - from my machine so I can just
> start over.
Well, you don't want to wipe the Apple-supplied one.
You can get rid of the python.org one be deleting:
/Library/Frameworks/Python.framework/
and:
/Applications/MacPython 2.6/
you may need to clean up your PATH in .bash_profile.
If you've set any environment variable, like PYTHONPATH, you need to
make sure you clear those in .bash_profile, etc.
and I guess delete .pydistutils.cfg
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Pythonmac-SIG
mailing list