Python Forum
Is there a method to completely uninstall on macOS? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: Is there a method to completely uninstall on macOS? (/thread-23597.html)



Is there a method to completely uninstall on macOS? - mjcsb - Jan-07-2020

I'm doing a clean install of macOS Mojave on my MacBook Pro, and recently downloaded the latest version of the Python installer 3.8.1, then double clicked the .pkg file to install it.

It was only after doing this, then running python3, that I got a notice indicating I needed to accept the Xcode user license - WTF, had not seen that on prior OS rebuilds. Once I did that, then again ran python3 --version, I see Python 3.7.3 returned, which is coming from /usr/bin/python3 added by Xcode and earlier on the path, so I'm never getting to the 3.8.1 version installed via the package I downloaded here. 3.7.3 is late enough for me, and I'd rather just use what comes with Xcode and remove this other version installed in /usr/local/bin.

But, it's not clear how I do that - I have not been able to find any instructions on this site or via searching "uninstall" on this forum to see how it's done, if it can be done.

Hope I'm asking in the right place...


RE: Is there a method to completely uninstall on macOS? - Larz60+ - Jan-08-2020

Quote:It was only after doing this, then running python3, that I got a notice indicating I needed to accept the Xcode user license
this blog talks about that: https://docs.python-guide.org/starting/install3/osx/


RE: Is there a method to completely uninstall on macOS? - perfringo - Jan-08-2020

Do you want to use Python 3.8 or get rid of it?

Assuming that Python 3.8 is installed 'python3.8' should work.

Following assumes that you use bash:

If you can use it with 'python3.8' then you may set alias in ~/.bash_profile file to use it as python3:

Output:
alias python3='python3.8'
If 'python3.8' is not working then there might be lot of reasons for that (not installed, not on path etc).

To verify that Python 3.8 indeed is on your path look for it in your bash_profile.