Homepage Forums Dev & Debugging How to run Python 3.8 on Ubuntu

  • How to run Python 3.8 on Ubuntu

  • Abhik Biswas

    Member
    December 4, 2020 at 12:14 am
    125 Coins
    0 Gems

    By default Python 2.7 is running on Ubuntu. I do not wish to change it as there are programs I am learning on Python 2.7 which is easier for me if it’s default. But for some instances, I need to use Python 3.8 which is installed. How do I do it? When I write Python in the terminal, I get the following:

    Python 2.7.18 (default, Aug 4 2020, 11:16:42)

    [GCC 9.3.0] on linux2

    Type "help", "copyright", "credits" or "license" for more information.

    >>>

  • Satya Mukherjee

    Administrator
    December 4, 2020 at 12:37 am
    8836 Coins
    484 Gems
    Helpful
    Up
    0
    Down
    Not Helpful

    Hi, to use Python 3.8 without changing the default version (after making sure it is installed), go to the terminal, and type Python3.8 instead of just Python to use the specific version of Python.

    ~$ python3.8

    Python 3.8.5 (default, Jul 28 2020, 12:59:40)

    [GCC 9.3.0] on linux

    Type "help", "copyright", "credits" or "license" for more information.

    >>>

Log in to reply.

Original Post
0 of 0 posts June 2018
Now

New Report

Close