uninstall python mac code example
Example 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.
Example 2: completely uninstall python and all vritualenvs from mac
sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.7
Example 3: désinstaller python sur mac
cd /usr/local/bin/
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | tr -d @ | xargs rm
Example 4: completely uninstall python and all vritualenvs from mac
sudo rm -rf "/Applications/Python 3.7"