Before writing real programs you need Python installed, a good editor, and a habit that saves endless pain later: a fresh virtual environment per project.
Installing Python
Download the latest Python from python.org (Windows/macOS) or install via your package manager. On Windows, tick "Add Python to PATH" during setup. Verify it:
python --version # e.g. Python 3.12.xpip --version # pip is Python's package installer
An editor
VS Code with the Python extension is the popular default — free, fast, with autocomplete and a debugger. PyCharm is a fuller IDE. Either is fine; VS Code is a great start.
Virtual environments
A virtual environment isolates a project's packages so versions never clash between projects. Make one per project:
python -m venv .venv # create it# activate:source .venv/bin/activate # macOS/Linux.venv\Scripts\activate # Windowspip install requests # installs into THIS project only
Key takeaways
- 01Install Python from python.org and confirm with python --version.
- 02On Windows, add Python to PATH during installation.
- 03Use VS Code (with the Python extension) as a beginner-friendly editor.
- 04Create a virtual environment per project (python -m venv) to isolate dependencies.
