How to reinstall python on Mac but version 3.2 (latest) and work with command line

I uninstalled python using the following commands:

sudo rm -rf /Library/Frameworks/Python.framework

sudo rm -rf /Applications/Python *

then removed all python related stuff here:

 /usr/local/bin

And I just installed python 3.2, but the python terminal is not working, $> pythondoes nothing except the command is not found

I deleted all the python stuff because there was a problem with older pythons using global site packages ... so I decided that it would be nice to start cleaning (I had ... 5 versions before)

+3
source share
3 answers

ActivePython. /usr/local/bin, pythonselect, "active" Python.

+3

, , Mac OS... - Python :)

MacPorts sudo port install python32, Python 3.2 /opt - .

+6

, . , , , python, , . /usr/local/bin/python - .

For example, you might have / usr / local / bin / python -3.2 instead of / usr / local / bin / python. Once you know where it is, all you have to do is create a symbolic link to it via:

ln -s /usr/local/bin/python-3.2 /usr/local/bin/python

The fact that only an example, of course, and you are paths may differ. You also need to run this command as root (sudo).

+2
source

All Articles