Python Development Environment Setup on Ubuntu

# Python Development Environment Setup on Ubuntu

## Step 1: Update Packages
bash
sudo apt update && sudo apt upgrade

## Step 2: Install Python 3 and pip
bash
sudo apt install python3 python3-pip

## Step 3: Install Visual Studio Code
– Using Snap:
bash
sudo snap install --classic code

– Or download .deb from [code.visualstudio.com](https://code.visualstudio.com/).

## Step 4: Create & Activate a Virtual Environment
bash
python3 -m venv venv
source venv/bin/activate

## Screenshot Placeholders
– [Terminal showing apt install]
– [VS Code running on Ubuntu]

## Troubleshooting Tips
– If ‘python3’ not found, run sudo apt install python3.
– For permission errors, use sudo or check user groups.


 

Leave a Reply

Your email address will not be published. Required fields are marked *