How to Upgrade Python on Linux?
Contents

You can install Python 3.6 along with them via a third-party PPA by doing following steps:

  • Open terminal via Ctrl+Alt+T or searching for “Terminal” from app launcher.
  • Then check updates and install Python 3.6 via commands: sudo apt-get update sudo apt-get install python3.6.

How do I upgrade to Python 3?

Steps to install python3.7 and configure it as the default python3 interpreter.

  1. Install the python3.7 package using apt-get. sudo apt-get install python3.7.
  2. Add python3.6 & python3.7 to update-alternatives.
  3. Update python3 to point to python3.7.
  4. Test the version of python.

How do I download Python on Linux?

Installing Python 3 on Linux

  • $ python3 –version.
  • $ sudo apt-get update $ sudo apt-get install python3.6.
  • $ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.6.
  • $ sudo dnf install python3.
Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest