This is the unlink documentation: -unlink package-id You can now select which packages you will unlink (remove). If you installed it using the PKG installer, you can do: pkgutil -pkgs Depending on which shell you use, any of the following files may have been modified: If necessary, edit your shell profile file(s) to remove adding /Library/Frameworks/amework/Versions/2.7 to your PATH environment file. Ls -l /usr/local/bin | grep './Library/Frameworks/amework/Versions/2.7' | awk '' | tr -d | xargs rm See them using ls -l /usr/local/bin | grep './Library/Frameworks/amework/Versions/2.7'Īnd then run the following command to remove all the links: cd /usr/local/bin/ Remove the symbolic links, in /usr/local/bin, that point to this Python version. Remove the Python 2.7 applications directory sudo rm -rf '/Applications/Python 2.7' Remove the third-party Python 2.7 framework sudo rm -rf /Library/Frameworks/amework/Versions/2.7
Basically, all you need to do is the following: NOTE: The steps listed below do not affect the Apple-supplied system Python 2.7 they only remove a third-party Python framework, like those installed by installers. Do not attempt to remove any Apple-supplied system Python which are in /System/Library and /usr/bin, as this may break your whole operating system.