avatarLaxfed Paulacy

Summary

The web content provides a step-by-step guide on how to set up Python 3.9 on Ubuntu Linux 20.04, including the installation of Python, pip, and IDLE, and mentions the use of Jupyter Notebook for a browser-based coding environment.

Abstract

The article titled "PYTHON — Python Ubuntu Linux Setup" is a tutorial aimed at guiding users through the process of installing Python 3.9 on Ubuntu Linux version 2

PYTHON — Python Ubuntu Linux Setup

Software is a great combination between artistry and engineering. — Bill Gates

PYTHON — Inheritance and Composition in Python OOP Guide Summary

# Setting Up Python on Ubuntu Linux

In this tutorial, you’ll learn how to set up Python on Ubuntu Linux. You’ll be guided through the process of installing Python and opening the Integrated Development and Learning Environment (IDLE) on Ubuntu version 20.04.

Before proceeding, it’s important to note that Ubuntu Linux comes with an outdated version of Python installed by default. You can check the version of Python installed on your system by opening a terminal window and typing the command:

python3 --version

If you’ve never installed Python on your computer before, the version displayed will be outdated. It’s essential to avoid using this system Python and install a version that you can actually use.

To install Python on Ubuntu, you can use the apt package manager, which is used to install software from Ubuntu’s Universe repository. The following steps will guide you through the process:

  1. Update Package Information: Open a terminal window and type the command:
  • sudo apt update
  1. Install Python 3.9 and Additional Packages: Once the update is complete, install Python 3.9, pip, and IDLE using the following command:
  • sudo apt install python3.9 python3-pip idle-python3.9

After installing the packages, you can check if Python 3.9 is successfully installed by running the command:

python3.9 --version

To open IDLE and interact with Python 3.9, you can use the following command in the terminal:

idle-python3.9

By following these steps, you have successfully installed Python 3.9 and opened IDLE on your Ubuntu system. This allows you to start running Python programs and exploring the features of Python 3.9.

Additionally, it’s worth mentioning that apt is now the recommended command for installing, updating, or removing deb packages on Ubuntu Linux. However, apt-get still has its place and is recommended for automation scripts that require a stable interface and predictable behavior without user interaction.

If you’re using Fedora Linux, the package manager dnf is used for installing, updating, or removing rpm packages. To install Python on Fedora, you can use the command:

sudo dnf install python3

Furthermore, if you want to explore using Jupyter Notebook, you can install it using pip with the following commands:

pip install notebook
jupyter notebook

These steps will install Jupyter Notebook, which provides a Python REPL interpreter that you can use to write and execute Python code in a browser-based environment.

By following the instructions in this tutorial, you can easily set up Python on Ubuntu Linux and start working with Python 3.9 and IDLE. If you want to explore installing Python on other operating systems, you can refer to the corresponding lessons in this course.

PYTHON — Deploying Google App Engine with Python

ChatGPT
Setup
Python
Ubuntu
Linux
Recommended from ReadMedium