Answers for "how to uninstall python on mac"

0

uninstall python 2.7 mac

1) Remove the third-party Python 2.7 framework

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

2) Remove the Python 2.7 applications directory

sudo rm -rf "/Applications/Python 2.7"

3) Remove the symbolic links, in /usr/local/bin, that point to this Python version. See them using

ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7'


and then run the following command to remove all the links:

cd /usr/local/bin/
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | tr -d @ | xargs rm

4) 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.
Posted by: Guest on September-22-2021
1

how to remove python3 on mac

MacBook-Pro:~ admin$ brew uninstall python3
Uninstalling /usr/local/Cellar/python/3.6.5... (5,102 files, 102.9MB)
MacBook-Pro:~ admin$ python3
-bash: python3: command not found
MacBook-Pro:~ admin$ python
Python 2.7.10 (default, Oct  6 2017, 22:29:07) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Posted by: Guest on June-05-2020
0

completely uninstall python and all vritualenvs from mac

sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.7
Posted by: Guest on December-13-2020
0

completely uninstall python and all vritualenvs from mac

sudo rm -rf "/Applications/Python 3.7"
Posted by: Guest on December-13-2020

Code answers related to "how to uninstall python on mac"

Python Answers by Framework

Browse Popular Code Answers by Language