+5 votes
3 views
How to Install the Latest Version of Python on Ubuntu

ago in Linux/Unix by (506k points)
reopened ago | 3 views

1 Answer

+3 votes
Best answer

How to install the latest version of Python on Ubuntu

Python is developed as an object-oriented programming language which has dynamic semantics making use of built-in high-level data structures, these can be used with dynamic writing so that application development is fully functional but without resorting to large codes, Python supports modules and packages which increases program modularity and code usability..

 

Python Features
We currently have version 3.11 of Python which offers us features such as:

 

  • This new version is about 10 to 60% faster than Python 3.10
  • TOML parsing support in the Standard Library
  • New -P command line option in environment variable
  • It is now possible to mark individual TypedDict elements as required or not required
  • Detailed error locations in traces
  • New modules have been added
  • faster cpython
  • Faster execution time
  • Python function calls online

 

 

 

In this tutorial TechnoWikis will explain how to install the latest version of Python on Ubuntu to enjoy this dynamic language.

 

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

How to install the latest version of Python on Ubuntu

 

 

Step 1

We open the terminal and install the required PPA:
 sudo add-apt-repository ppa:deadsnakes/ppa 
image

 

Step 2

We enter the password and we will see the following.

 

Press the Enter key to install the PPA

 

image

 

 

Step 3

This PPA contains the latest Python versions packaged for Ubuntu which often cannot be installed automatically.

 

image

 

Step 4

We update the repository together with the system packages:
 sudo apt update 
image

 

step 5

We install Python 3.11 which is the most recent version using the following command:
 sudo apt install python3.11 
image

 

step 6

Enter the letter S to confirm:

 

image

 

step 7

We look at the Python binaries installed on Ubuntu:
 ls -l /usr/bin/python* 
image

 

step 8

We validate the Python version using one of the following commands:
 python -V python3 -V 
step 9

We see that it takes the default system version.

 

 

image

 

 

step 10

We access Python 3.11 with the command:
 python3.11 
step 11

We execute some line with the syntax:
 print("text"); 
step 12

Press Enter to see the line. We leave with "exit()" or “quit()”.

 

 

 

image

 

This is the entire process to install the latest version of Python on Ubuntu..

 


ago by (3.2m points)
edited ago

Related questions

+4 votes
1 answer
asked Jul 14, 2020 in Android Tutorial by backtothefuture (506k points) | 219 views
+3 votes
1 answer
+4 votes
1 answer
+3 votes
1 answer
asked Nov 6, 2020 in Internet by backtothefuture (506k points) | 162 views
+5 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback
9,738 questions
9,859 answers
496 comments
3 users