Python is a popular programming language often used to write scripts for operating systems. It’s versatile enough for use in web development and app design.
In this tutorial you will learn how to install Python 3.8 on Ubuntu 18.04 or Ubuntu 20.04.
Prerequisites
A system running Ubuntu 18.04 or Ubuntu 20.04
A user account with sudo privileges
Access to a terminal window/command-line (Ctrl–Alt–T)
Make sure your environment is configured to use Python 3.8
Option 1: Install Python 3 Using apt (Easier)
This process uses the apt package manager to install Python. There are fewer steps, but it’s dependent on a third party hosting software updates. You may not see new releases as quickly on a third-party repository.
Most factory versions of Ubuntu 18.04 or Ubuntu 20.04 come with Python pre-installed. Check your version of Python by entering the following:
python --version
If the revision level is lower than 3.7.x, or if Python is not installed, continue to the next step.
Step 1: Update and Refresh Repository Lists
Open a terminal window, and enter the following:
sudo apt update
Step 2: Install Supporting Software
The software-properties-common package gives you better control over your package manager by letting you add PPA (Personal Package Archive) repositories. Install the supporting software with the command:
sudo apt install software-properties-common
install additional software for python
Step 3: Add Deadsnakes PPA
Deadsnakes is a PPA with newer releases than the default Ubuntu repositories. Add the PPA by entering the following:
sudo add-apt-repository ppa:deadsnakes/ppa
The system will prompt you to press enter to continue. Do so, and allow it to finish. Refresh the package lists again:
sudo apt update
Step 4: Install Python 3
Now you can start the installation of Python 3.8 with the command:
sudo apt install python3.8
Allow the process to complete and verify the Python version was installed sucessfully::
python --version
Check Python version to confirm installation.
If you hit a problem or have feedback, leave a comment below.
__________________________________________
Reference:
https://linuxize.com/post/how-to-inst...
__________________________________________
Subscribe to us: https://www.youtube.com/channel/UCV28...
__________________________________________
Ignore Tags:
#gccCompiler #C #C++ #programming #language #ubuntu #linux
__________________________________________
NINJA co.™
🔥 | Learn Something New Everyday 🔥
🚀 | Full-stack • MERN • Development
💻 | Python • Java • C • C++
🧠 | Linux 🐧
📊 | AI • ML • Data Science 👨💻💯 & more.
__________________________________________
The Future is Now!
Passionate about Technology | Marketing | AI
Tricks of the Internet
Programmer💻👨💻🧠💡🔥
| 💻 | #programminglanguages
| 💻 | #fullstackdeveloper
| 👩💻 | #merndeveloper
| 👩💻 | #softwareengineering
| 📈 | #datascience
| 🤖 | #machinelearning
| 🧠 | #artificialintelligence
| 📊 | #deeplearning
| 👩💻 | #datascientist
__________________________________________
🔥 Sharing Quality Content Daily
🔍 Programming | What Is | How-To
📚 Only Knowledge
__________________________________________
📩 DM for Business/Queries
🔥 Important links: Discord | YouTube | Facebook | Instagram👇
https://linktr.ee/Ninja_Corp
Support the stream: https://streamlabs.com/ninjaprogrammerco
Copyright © 2020 NINJA Co. All rights reserved.