The easiest way to start afresh with Mac Ports or Fink is to simply remove the folder /sw/
(for fink) or /opt/
for MacPorts.
To completely remove them, you will have to remove a line in your ~/.profile
file:
For fink:
test -r /sw/bin/init.sh && . /sw/bin/init.sh
..and for MacPorts, I don't have it installed currently, but there will be something along the lines of:
export PATH=$PATH:/opt/local/bin
export PATH=$PATH:/opt/local/sbin
As for installing Python, currently the cleanest way is to build it from source..
I wrote up how I installed Python 2.6 on Leopard here. It was for one of the 2.6 beta releases, so change the curl -O
line to the newest release!
In short, download and extract the latest python 2.6 source tarball, then (in a terminal) cd
to where you extracted the tarball, and run the following commands..
./configure --prefix=/usr/local/python2.6
make
sudo make install
That will install python2.6 into /usr/local/python2.6/
(the last line requires sudo, so will ask you for your password)
Finally add /usr/local/python2.6
to $PATH, by adding the following line you the file ~/.profile
export PATH=$PATH:/usr/local/python2.6
Then you will be able to run the python2.6
command.
Ideally you would just install MacPython, but it doesn't seem to have a decent Python 2.6 installer yet.