# Install Python — Python Fundamentals: From Basics to Async

Source: https://www.skillbyai.com/en/python/py-setup

> Install Python 3.10 or newer and create an isolated virtual environment for each project.

## Check / install

You want 3.10 or newer.

```bash
# macOS / Linux: python3 --version
# Windows:       py --version   (or python --version)

# macOS:   brew install python
# Ubuntu:  sudo apt install python3 python3-venv python3-pip
# Windows: python.org installer, tick "Add to PATH"
```

## Virtual environment

Keep each project's packages isolated.

```bash
# macOS / Linux          # Windows (PowerShell)
python3 -m venv .venv     # py -m venv .venv
source .venv/bin/activate # .venv\Scripts\activate
pip install requests
```
