Quick Answer: How Do I Uninstall Python 2 from Linux?
Contents

How do I uninstall Python 2?

Navigate to Control Panel. Click “Uninstall a program”, and a list of all the currently installed programs will display. Select the Python version that you want to uninstall, then click the “Uninstall” button above the list – this has to be done for every Python version installed on the system.

How do I uninstall Python 2 from Ubuntu?

  1. # Remove python2.
  2. sudo apt purge -y python2.7-minimal.
  3. ​
  4. # You already have Python3 but.
  5. # don’t care about the version.
  6. sudo ln -s /usr/bin/python3 /usr/bin/python.
  7. ​
  8. # Same for pip.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest