I installed Python through MacPorts, and then changed the path to that one.
/opt/local/bin/python
using this command
sudo port select python python27
But now i want to revert to the Mac one at this path
/usr/bin/python
How can I go about doing this?
EDIT:
I uninstalled the MacPort Python, restarted the terminal and everything went back to normal. Strange. But I sill don’t know why/how.
The
sudo port selectcommand only switches what/usr/local/bin/pythonpoints to, and does not touch the/usr/bin/pythonpath at all.The
/usr/bin/pythonexecutable is still the default Apple install. Your$PATHvariable may still look in/usr/local/binbefore/usr/binthough when you type inpythonat your Terminal prompt.