Installation: Anaconda & Jupyter
Lesson opener
In one line: Install Python, Jupyter, and libraries used in this lab (pandas, numpy, matplotlib).
Why it matters: This shows up at work when you need to install Python, Jupyter, and libraries used in this lab (pandas, numpy, matplotlib)..
Before this lesson: - (first lesson in Setup Guide)
Before you start
| Resource | Link |
|---|---|
| Previous | — (first lesson in Setup Guide) |
| Sample data | Sample data |
| Study guide | Study guide |
| Next | MySQL install |
What you will learn
Install Python, Jupyter, and libraries used in this lab (pandas, numpy, matplotlib).
Tutorial 1 — Download and install
- Download Anaconda Individual Edition (Python 3.11+ for Windows).
- Run installer → Add Anaconda to PATH (optional but helps in terminal).
- Finish install; open Anaconda Prompt from Start menu.
If
condais not recognized ('conda' is not recognized as an internal or external command): Windows PATH was not updated during install. Fastest fix — open Anaconda Prompt from the Start menu (it already knows where conda lives) instead of plain Command Prompt or PowerShell. To use a normal terminal later, re-run the Anaconda installer and check Add Anaconda to PATH, or reinstall with that box checked.
Tutorial 2 — Verify Python
python --version
conda --versionExpected: Python 3.11.x or newer.
Tutorial 3 — Create environment (recommended)
Open Anaconda Prompt, then go to the folder where you cloned or downloaded this lab (the folder that contains requirements.txt and notebooks/).
conda create -n learnings python=3.11 -y
conda activate learnings
pip install -r requirements.txtIf pip cannot find requirements.txt, you are in the wrong folder — cd into the lab root first (the directory that holds that file).
Tutorial 4 — Start Jupyter
From the same lab root (still with learnings activated):
jupyter notebookBrowser opens → open notebooks/00_getting_started.ipynb (from the repo folder).
Run first cell:
import pandas as pd
import numpy as np
print(pd.__version__)Tutorial 5 — Link to rest of lab
| Course | Start lesson |
|---|---|
| Excel | Spreadsheets intro |
| SQL | MySQL install then Intro to DBMS |
| Python | Intro to Python after Excel/SQL basics |
Essential commands
| Command / action | What it does |
|---|---|
python --version | Shows installed Python version. |
conda --version | Shows Conda package manager version. |
conda create -n learnings python=3.11 -y | Creates a named environment for this lab. |
conda activate learnings | Activates the environment before pip/jupyter. |
pip install -r requirements.txt | Installs pandas, numpy, matplotlib, etc. |
jupyter notebook | Starts Jupyter in the browser from current folder. |
import pandas as pd | Loads pandas in Python or a notebook cell. |
Practice
Do this now: Install Anaconda, create learnings env, run jupyter notebook, execute import pandas successfully.
Teacher walkthrough: env before notebooks
All figures illustrative.
Step 1 — Install Anaconda; prefer Anaconda Prompt on Windows if PATH failed.
Step 2 — Create learnings env with Python 3.11; activate before pip.
Step 3 — cd to lab root that contains requirements.txt; pip install -r requirements.txt.
Step 4 — jupyter notebook → run import cell for pandas/numpy.
Failure example: pip in the wrong folder / base env
Symptom: No such file requirements.txt or packages missing inside Jupyter.
Diagnosis: Not in lab root, or Jupyter kernel not using learnings.
Correction: Activate env; cd correctly; select the learnings kernel.
Validation: import pandas as pd; print(pd.__version__) in notebook.
Guided practice
conda is not recognized in PowerShell. Fastest next step?
Complete solution: Open Anaconda Prompt (PATH already set) or reinstall with "Add to PATH" — do not keep fighting plain PowerShell first.
Independent practice
Acceptance criteria:
- Anaconda Prompt opens;
python --versionworks. learningsenv created and activated.- Jupyter runs a notebook from this repo with pandas import OK.
- Next step chosen: MySQL or Excel.
Common mistakes
- Installing packages into base forever.
- Starting Jupyter from a random directory.
- Mixing multiple Python installs without checking
where python.