Rana Maninder Singh
Lesson 1 of 8Setup Guide

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

ResourceLink
Previous— (first lesson in Setup Guide)
Sample dataSample data
Study guideStudy guide
NextMySQL install


What you will learn

Install Python, Jupyter, and libraries used in this lab (pandas, numpy, matplotlib).

Learning workflow cheat sheet
Learning workflow cheat sheet

Tutorial 1 — Download and install

  1. Download Anaconda Individual Edition (Python 3.11+ for Windows).
  2. Run installer → Add Anaconda to PATH (optional but helps in terminal).
  3. Finish install; open Anaconda Prompt from Start menu.

If conda is 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 --version

Expected: 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.txt

If 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 notebook

Browser 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

CourseStart lesson
ExcelSpreadsheets intro
SQLMySQL install then Intro to DBMS
PythonIntro to Python after Excel/SQL basics

Essential commands

Command / actionWhat it does
python --versionShows installed Python version.
conda --versionShows Conda package manager version.
conda create -n learnings python=3.11 -yCreates a named environment for this lab.
conda activate learningsActivates the environment before pip/jupyter.
pip install -r requirements.txtInstalls pandas, numpy, matplotlib, etc.
jupyter notebookStarts Jupyter in the browser from current folder.
import pandas as pdLoads 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:

Common mistakes

  1. Installing packages into base forever.
  2. Starting Jupyter from a random directory.
  3. Mixing multiple Python installs without checking where python.

Checklist

  • [ ] Anaconda Prompt opens
  • [ ] python --version works
  • [ ] Jupyter runs a notebook from this repo
  • [ ] Continue to MySQL or Excel