uninstall python 2 7 mac

Solutions on MaxInterview for uninstall python 2 7 mac by the best coders in the world

showing results for - "uninstall python 2 7 mac"
Matteo
30 Jan 2018
11) Remove the third-party Python 2.7 framework
2
3sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
4
52) Remove the Python 2.7 applications directory
6
7sudo rm -rf "/Applications/Python 2.7"
8
93) Remove the symbolic links, in /usr/local/bin, that point to this Python version. See them using
10
11ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7'
12
13
14and then run the following command to remove all the links:
15
16cd /usr/local/bin/
17ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | tr -d @ | xargs rm
18
194) If necessary, edit your shell profile file(s) to remove adding /Library/Frameworks/Python.framework/Versions/2.7 to your PATH environment file. Depending on which shell you use, any of the following files may have been modified: ~/.bash_login, ~/.bash_profile, ~/.cshrc, ~/.profile, ~/.tcshrc, and/or ~/.zprofile.