DEV Community

desawsume
desawsume

Posted on

Get the python version and clean up the Mac residue python installed version

we might have situation when the python install in below path
Library/Frameworks/Python.framework

And we will go through the step to clean up and remove the path as well as install the brew version

First, let's uninstall previous Python versions:

rm -rf /Library/Frameworks/Python.framework
rm -rf /usr/local/bin/python3
Enter fullscreen mode Exit fullscreen mode

Second, remove the previous frameworks from the $PATH variable:

it can either on
~/.bash_profile
~/.zshrc

brew install python3

Top comments (0)