GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - csev/uninstall-python3: A Simple Shell Script to Uninstall Python 3 versions from Mac OS/X

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
uninstall-python3.sh
uninstall-python3.sh
 
 

Repository files navigation

Uninstall Python3

A simple shell script to un-install Python 3 versions from Mac OS/X.

Of course we all want Python 3 everywhere - but sometimes we want to remove the older version and install the latest version - or just do a re-install from scratch.

There is no need to check out this repository - just grab the uninstall-python3.sh file and download it somewhere.

The script is designed to function as a dry run so you can see all that it will do. To run a dry run, do

bash uninstall-python3.sh

Examine the output - make sure that it is moving only the expected files. When you are convinced this will do what you expect, run

bash uninstall-python3.sh | sudo bash -v

To verify the files are gone, you can re-run

bash uninstall-python3.sh

It should produce no output.

And then you can happily re-install Python 3!

Sample Output (an easy approach)

Here is the output of a sample run with the dry run first and the actual run second. At the very end, we re-run a dry run to make sure things are gone.

$ bash uninstall-python3.sh
rm '/usr/local/bin/2to3'
rm '/usr/local/bin/2to3-3.6'
rm '/usr/local/bin/easy_install-3.6'
rm '/usr/local/bin/idle3'
rm '/usr/local/bin/idle3.6'
rm '/usr/local/bin/pip3'
rm '/usr/local/bin/pip3.6'
rm '/usr/local/bin/pydoc3'
rm '/usr/local/bin/pydoc3.6'
rm '/usr/local/bin/python3'
rm '/usr/local/bin/python3-32'
rm '/usr/local/bin/python3-config'
rm '/usr/local/bin/python3.6'
rm '/usr/local/bin/python3.6-32'
rm '/usr/local/bin/python3.6-config'
rm '/usr/local/bin/python3.6m'
rm '/usr/local/bin/python3.6m-config'
rm '/usr/local/bin/pyvenv'
rm '/usr/local/bin/pyvenv-3.6'
rm -rf '/Library/Frameworks/Python.framework/Versions/3.6'
rm -rf '/Applications/Python 3.6'
$ bash uninstall-python3.sh | sudo bash -v
Password:
rm '/usr/local/bin/2to3'
rm '/usr/local/bin/2to3-3.6'
rm '/usr/local/bin/easy_install-3.6'
rm '/usr/local/bin/idle3'
rm '/usr/local/bin/idle3.6'
rm '/usr/local/bin/pip3'
rm '/usr/local/bin/pip3.6'
rm '/usr/local/bin/pydoc3'
rm '/usr/local/bin/pydoc3.6'
rm '/usr/local/bin/python3'
rm '/usr/local/bin/python3-32'
rm '/usr/local/bin/python3-config'
rm '/usr/local/bin/python3.6'
rm '/usr/local/bin/python3.6-32'
rm '/usr/local/bin/python3.6-config'
rm '/usr/local/bin/python3.6m'
rm '/usr/local/bin/python3.6m-config'
rm '/usr/local/bin/pyvenv'
rm '/usr/local/bin/pyvenv-3.6'
rm -rf '/Library/Frameworks/Python.framework/Versions/3.6'
rm -rf '/Applications/Python 3.6'
$ bash uninstall-python3.sh
$

Happy re-installing!

About

A Simple Shell Script to Uninstall Python 3 versions from Mac OS/X

Resources

Readme
Activity

Stars

120 stars

Watchers

3 watching

Forks

50 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.