Remove the Python methods you installed on Mac

  • 2021-01-18 06:33:28
  • OfStack

It is recommended to use Homebrew to install the third party tool. Self-installed python is scattered all over the computer, making it difficult to delete. Today, the process of deleting 1 is recorded here (I take Python3.6 as an example).

Delete Python 3.6 framework

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

Delete the Python 3.6 application directory

sudo rm -rf "/Applications/Python 3.6"

Delete the connection to Python3.6 in /usr/local/bin

cd /usr/local/bin/

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

~/.bash_login, ~/.bash_profile, ~/.cshrc, ~/.profile, ~/.tcshrc, and/or ~/.zprofile. When installed, it is default to configure ES62en3.6 in ~/.bash_profile and delete it.


Related articles: