Python lab setup
A clean **Python lab setup** so you can run ANN Learn code labs safely: editor, virtual environment, packages, and secrets hygiene.
What it is
A clean Python lab setup so you can run ANN Learn code labs safely: editor, virtual environment, packages, and secrets hygiene.
Why it matters
Most “I can’t learn AI” moments are environment pain. Fix setup once; reuse across chapters.
How it works (plain)
- Install a current Python 3.x from a trusted source
- Create a virtual environment per project
- Install only what the lab lists
- Store API keys in env vars—not in shared notebooks
- Don’t paste secrets into public chats
Everyday example
A labeled toolbox on a workbench beats dumping every wrench into one drawer.
Try it
Create a folder ann-labs, make a venv, and run python -c "print('ok')".
Myths
- ⚠️ Myth: You must master all of Python before any AI lab.
- ✓ Reality: Variables, functions, lists/dicts, and reading errors unlock Wave 1 labs.
- ⚠️ Myth: Global
pip installeverywhere is fine. - ✓ Reality: Environments prevent dependency hell.
Sources
- Python.org downloads/docs: https://www.python.org/ ↗
- Course 21 later labs; provider SDK quickstarts (cite specifically)
- OWASP secrets hygiene themes via Course 19 security basics
