Languages
Python
Installing Python 3, pip, venv, and deadsnakes PPA on Ubuntu in TIDE
Python
Python is a versatile, high-level, interpreted programming language widely used in web development, data analysis, artificial intelligence, and automation.
Installation
Option 1: Ubuntu Default Repositories
Ubuntu includes Python 3 by default. Ensure you have pip and venv installed:
sudo apt update
sudo apt install -y python3 python3-pip python3-venv build-essentialOption 2: deadsnakes PPA (Latest Python Versions)
If you need a specific modern release (e.g. Python 3.12 or 3.13) on older Ubuntu versions:
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt update
# Install Python 3.12 and tooling
sudo apt install -y python3.12 python3.12-venv python3.12-devVirtual Environments
It is best practice to isolate project dependencies using a virtual environment:
# Create a virtual environment
python3 -m venv myenv
# Activate the virtual environment
source myenv/bin/activate
# Install dependencies within the environment
pip install requestsVerification
Check the installed Python and pip versions:
python3 --version
pip3 --versionRunning Code
Create a file named hello.py:
print("Hello, TIDE!")Execute the script:
python3 hello.py