Homepage
  • Publications
  • BlogPosts
  • Gallery
  • Resume

On this page

  • General Instructions
  • Lab Overview
  • Understanding the Basics
    • What are Virtual Environments?
    • Python Scripts vs Jupyter Notebooks
  • Part 1: Installing Anaconda
    • What is Anaconda?
    • Step 1: Download Anaconda
    • Step 2: Install Anaconda
    • Step 3: Verify Installation
  • Part 2: Setting Up Environment Variables
    • Windows: Adding to PATH
    • macOS/Linux: Adding to PATH
  • Part 3: Creating Your First Environment
    • Why Use Environments?
    • Create a Course Environment
    • Activate Your Environment
    • Install Essential Packages
    • Verify Your Installation
  • Part 4: Running Python
    • Method 1: Python Interactive Shell
    • Method 2: Running Python Scripts
    • Method 3: Jupyter Notebook
  • Part 5: Essential Commands Reference
    • Conda Environment Commands
    • Package Management Commands
    • Jupyter Commands
  • Part 6: Practice Exercise
    • Exercise: Create and Run Your First Python Script
  • Troubleshooting Common Issues
    • Issue: “conda: command not found”
    • Issue: “Permission denied” errors on macOS/Linux
    • Issue: Packages fail to install
    • Issue: Jupyter won’t start
    • Issue: Environment activation doesn’t work
  • Preparation for Next Lab
  • Assignment Submission Setup
  • Quick Start Checklist
  • Additional Resources
  • Questions?

Setting Up Your Python Development Environment

Installing Anaconda and Configuring Your First Environment

Python
Anaconda
Setup
Virtual Environments
Author

Ayush Shrivastava

Published

January 8, 2026

General Instructions

Before you begin, please read these important guidelines:

Getting Help:

  • If you encounter any issues or have questions at any point during this lab, raise your hand and contact the nearest Teaching Assistant (TA) immediately.
  • Do not spend more than 5 minutes stuck on a single step. Ask for help early rather than falling behind.
  • TAs are here to assist you. No question is too small or too basic.

Working Through the Lab:

  • Follow the instructions in order. Do not skip sections unless instructed by your TA.
  • Read each step carefully before executing commands.
  • Pay attention to your operating system (Windows, macOS, or Linux) as instructions may differ.
  • Test each step before moving to the next one to ensure everything is working correctly.

Important Notes:

  • Take notes of any errors you encounter and the solutions that worked for you.
  • Keep this document open for reference during future assignments.
  • Make sure you complete the verification steps to confirm your installation is working.
  • Do not leave the lab until you have a fully functional Python environment.

Lab Etiquette:

  • Be patient during downloads and installations as they may take several minutes.
  • Help your neighbors if they are struggling and you have completed a section.
  • Keep your workspace organized and save any important files you create.
  • Before leaving, ensure you can run Python code and that all required packages are installed.

Lab Overview

Duration: 1.5 hours

Objectives: By the end of this lab, you will be able to:

  • Install Anaconda on your computer
  • Understand and configure environment variables
  • Create and manage Python virtual environments
  • Run Python code and Jupyter notebooks
  • Complete course assignments using your setup

Understanding the Basics

Before we start installing software, let’s understand some key concepts that will help you throughout this course.

What are Virtual Environments?

Think of a virtual environment as a separate workspace for each of your projects. Imagine you have two different projects:

  • Project A needs Python 3.9 and version 1.0 of a package called “data-tools”
  • Project B needs Python 3.11 and version 2.0 of the same “data-tools” package

Without virtual environments, you could only have one version installed at a time, and switching between projects would be a nightmare. Virtual environments solve this problem by creating isolated spaces where each project can have its own Python version and packages without interfering with each other.

Key benefits of virtual environments:

  • Keep different projects separate and organized
  • Avoid conflicts between package versions
  • Make it easy to share your project setup with others
  • Prevent accidentally breaking one project while working on another

Python Scripts vs Jupyter Notebooks

Python code can be written and executed in different ways. The two most common formats you’ll use are:

Python Scripts (.py files):

Python scripts are plain text files containing Python code, saved with a .py extension. They are:

  • Simple text files you can edit in any text editor
  • Run from start to finish in one go
  • Good for automation, data processing, and final production code
  • Example: my_program.py

When you run a script, Python executes all the code from top to bottom and then exits.

Jupyter Notebooks (.ipynb files):

Jupyter Notebooks are interactive documents that combine code, text, and visualizations. They are:

  • Divided into “cells” that can be run independently
  • Interactive - you can run code, see results immediately, and modify your approach
  • Great for data exploration, learning, and creating reports
  • Can include formatted text, equations, images, and plots alongside your code
  • Example: data_analysis.ipynb

In a notebook, you can run one cell at a time, experiment with different approaches, and see the results right away. This makes them perfect for learning and data analysis.

When to use each:

  • Use scripts for: homework assignments that just need final code, automated tasks, programs that run repeatedly
  • Use notebooks for: exploring data, learning new concepts, creating reports with visualizations, step-by-step analysis

In this course, you may use both depending on the assignment requirements.

Part 1: Installing Anaconda

What is Anaconda?

Anaconda is a distribution of Python that comes with many pre-installed packages for data science and scientific computing. It also includes conda, a package manager that makes it easy to install additional packages and manage different environments.

Step 1: Download Anaconda

  1. Go to https://www.anaconda.com/download
  2. Choose the installer for your operating system (Windows, macOS, or Linux)
  3. Download the latest Python 3.x version (not Python 2.x)

Step 2: Install Anaconda

Windows Installation

  1. Run the downloaded .exe file
  2. Click “Next” through the setup wizard
  3. Important: On the “Advanced Installation Options” screen:
    • Check “Add Anaconda3 to my PATH environment variable” (even though it’s not recommended, it makes things easier for beginners)
    • Check “Register Anaconda3 as my default Python 3.x”
  4. Click “Install” and wait for the installation to complete (this may take 10-15 minutes)
  5. Click “Finish”

macOS Installation

  1. Open the downloaded .pkg file
  2. Follow the installation prompts
  3. Click “Continue” and “Install”
  4. Enter your password when prompted
  5. Click “Close” when installation is complete

Linux Installation

  1. Open Terminal
  2. Navigate to the directory where you downloaded the file
  3. Run the following command (replace with your actual filename):
bash Anaconda3-2024.xx-Linux-x86_64.sh
  1. Press Enter to read the license agreement, then type “yes” to accept
  2. Press Enter to confirm the installation location
  3. Type “yes” when asked to initialize Anaconda

Step 3: Verify Installation

Open a new terminal or command prompt and run:

conda --version

You should see output like conda 24.x.x. If you get an error, proceed to the next section.

Part 2: Setting Up Environment Variables

If the conda --version command didn’t work, you need to add Anaconda to your system’s PATH.

Windows: Adding to PATH

  1. Press Win + X and select “System”
  2. Click “Advanced system settings” on the right
  3. Click “Environment Variables” button
  4. Under “User variables”, find and select “Path”, then click “Edit”
  5. Click “New” and add these paths (adjust if you installed in a different location):
    • C:\Users\YourUsername\anaconda3
    • C:\Users\YourUsername\anaconda3\Scripts
    • C:\Users\YourUsername\anaconda3\Library\bin
  6. Click “OK” on all windows
  7. Close and reopen your command prompt
  8. Test again with conda --version

macOS/Linux: Adding to PATH

  1. Open Terminal
  2. Check which shell you’re using:
echo $SHELL
  1. Edit your shell configuration file:
    • If using bash: nano ~/.bashrc
    • If using zsh: nano ~/.zshrc
  2. Add this line at the end of the file:
export PATH="$HOME/anaconda3/bin:$PATH"
  1. Save the file (Ctrl+O, Enter, then Ctrl+X in nano)
  2. Reload the configuration:
source ~/.bashrc  # or source ~/.zshrc
  1. Test with conda --version

Part 3: Creating Your First Environment

Why Use Environments?

Virtual environments let you have different versions of Python and packages for different projects. This prevents conflicts and keeps your projects organized.

Create a Course Environment

Open your terminal/command prompt and run these commands:

# Create a new environment named 'course_env' with Python 3.11
conda create -n course_env python=3.11 -y

This will take a few minutes as it downloads and installs Python.

Activate Your Environment

# Windows
conda activate course_env

# macOS/Linux
conda activate course_env

Your prompt should now show (course_env) at the beginning, indicating the environment is active.

Install Essential Packages

With your environment activated, install the packages you’ll need:

# Install data science packages
conda install numpy pandas matplotlib jupyter -y

# Install additional useful packages
conda install scipy scikit-learn seaborn -y

Verify Your Installation

Check that packages are installed:

# Check Python version
python --version

# Check installed packages
conda list

Part 4: Running Python

Method 1: Python Interactive Shell

With your environment activated, simply type:

python

You’ll see the Python prompt >>>. Try some commands:

print("Hello, Python!")
x = 5 + 3
print(x)
exit()

Method 2: Running Python Scripts

  1. Create a file called test.py with this content:
# test.py
print("This is my first Python script!")

# Do some calculation
numbers = [1, 2, 3, 4, 5]
total = sum(numbers)
print(f"The sum is: {total}")
  1. Run it from the terminal:
python test.py

Method 3: Jupyter Notebook

Jupyter notebooks are interactive documents that mix code, text, and visualizations.

  1. Start Jupyter:
jupyter notebook
  1. Your browser will open automatically
  2. Click “New” → “Python 3” to create a new notebook
  3. Try this in a cell:
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 10, 100)
y = np.sin(x)

plt.plot(x, y)
plt.title("My First Plot")
plt.show()
  1. Press Shift + Enter to run the cell

Part 5: Essential Commands Reference

Conda Environment Commands

# List all environments
conda env list

# Create new environment
conda create -n myenv python=3.11

# Activate environment
conda activate myenv

# Deactivate environment
conda deactivate

# Delete environment
conda env remove -n myenv

# Export environment (for sharing)
conda env export > environment.yml

# Create environment from file
conda env create -f environment.yml

Package Management Commands

# Install a package
conda install package_name

# Install specific version
conda install package_name=1.2.3

# Update a package
conda update package_name

# Remove a package
conda remove package_name

# List installed packages
conda list

# Search for a package
conda search package_name

Jupyter Commands

# Start Jupyter Notebook
jupyter notebook

# Start Jupyter Lab (more advanced interface)
jupyter lab

# List running notebooks
jupyter notebook list

# Stop all notebooks
jupyter notebook stop

Part 6: Practice Exercise

Let’s put everything together! Complete this exercise to confirm your setup is working.

Exercise: Create and Run Your First Python Script

  1. Make sure your course_env is activated
  2. Create a new file called hello.py
  3. Copy this code into the file:
# hello.py - My first Python script

# Print a welcome message
print("Welcome to Python Programming!")
print("=" * 40)

# Basic arithmetic
print("\nLet's do some basic math:")
a = 10
b = 5
print(f"{a} + {b} = {a + b}")
print(f"{a} - {b} = {a - b}")
print(f"{a} * {b} = {a * b}")
print(f"{a} / {b} = {a / b}")

# Working with lists
print("\nWorking with a list of numbers:")
numbers = [1, 2, 3, 4, 5]
print(f"My numbers: {numbers}")
print(f"Sum of numbers: {sum(numbers)}")
print(f"Largest number: {max(numbers)}")

# Your turn - add your name
your_name = "Your Name Here"  # Change this to your actual name
print(f"\nThis script was created by: {your_name}")
print("\nCongratulations! Your Python environment is working correctly!")
  1. Before running, change “Your Name Here” to your actual name
  2. Run the script:
python hello.py
  1. You should see output showing the calculations and your name

Expected Output:

Welcome to Python Programming!
========================================

Let's do some basic math:
10 + 5 = 15
10 - 5 = 5
10 * 5 = 50
10 / 5 = 2.0

Working with a list of numbers:
My numbers: [1, 2, 3, 4, 5]
Sum of numbers: 15
Largest number: 5

This script was created by: [Your Name]

Congratulations! Your Python environment is working correctly!

Congratulations! You’ve successfully set up your Python environment and run your first Python script.

Troubleshooting Common Issues

Issue: “conda: command not found”

Solution: Anaconda is not in your PATH. Go back to Part 2 and set up environment variables.

Issue: “Permission denied” errors on macOS/Linux

Solution: Add sudo before the command, or check file permissions with chmod.

Issue: Packages fail to install

Solution: Try updating conda first:

conda update conda
conda update --all

Issue: Jupyter won’t start

Solution: Make sure jupyter is installed in your active environment:

conda install jupyter -y

Issue: Environment activation doesn’t work

Solution: - Windows: Use Anaconda Prompt instead of regular Command Prompt - Mac/Linux: Make sure you’ve run conda init after installation

Preparation for Next Lab

Before the next lab session:

  1. Practice creating a new environment called practice_env
  2. Install numpy and matplotlib packages in it
  3. Create a simple Python script that prints your name and the current date
  4. Explore the Jupyter notebook interface and try creating cells with markdown text

Assignment Submission Setup

For course assignments:

  1. Always activate course_env before starting work
  2. Organize your work in folders by week/assignment
  3. Use Jupyter notebooks for assignments that require visualization
  4. Use .py scripts for pure code assignments
  5. Include comments in your code explaining what each section does

Quick Start Checklist

Use this checklist at the start of each assignment:

Additional Resources

  • Anaconda Documentation
  • Conda Cheat Sheet
  • Jupyter Notebook Documentation
  • Python Official Tutorial

Questions?

If you encounter any issues during the lab, raise your hand and ask for help. Make sure you have a working setup before leaving today, as you’ll need it for all future assignments.


Lab Complete! You’re now ready to start programming in Python for this course.

Source Code
---
title: "Setting Up Your Python Development Environment"
subtitle: "Installing Anaconda and Configuring Your First Environment"
author: Ayush Shrivastava
image: /images/blogs/initial_install/thumbnail.png
date: 2026-01-08
categories: [Python, Anaconda, Setup, Virtual Environments]
format:
  html:
    toc: true
    toc-depth: 3
    code-fold: false
    code-tools: true
    theme: cosmo
---

## General Instructions

Before you begin, please read these important guidelines:

**Getting Help:**

- If you encounter any issues or have questions at any point during this lab, raise your hand and contact the nearest Teaching Assistant (TA) immediately.
- Do not spend more than 5 minutes stuck on a single step. Ask for help early rather than falling behind.
- TAs are here to assist you. No question is too small or too basic.

**Working Through the Lab:**

- Follow the instructions in order. Do not skip sections unless instructed by your TA.
- Read each step carefully before executing commands.
- Pay attention to your operating system (Windows, macOS, or Linux) as instructions may differ.
- Test each step before moving to the next one to ensure everything is working correctly.

**Important Notes:**

- Take notes of any errors you encounter and the solutions that worked for you.
- Keep this document open for reference during future assignments.
- Make sure you complete the verification steps to confirm your installation is working.
- Do not leave the lab until you have a fully functional Python environment.

**Lab Etiquette:**

- Be patient during downloads and installations as they may take several minutes.
- Help your neighbors if they are struggling and you have completed a section.
- Keep your workspace organized and save any important files you create.
- Before leaving, ensure you can run Python code and that all required packages are installed.

## Lab Overview

**Duration:** 1.5 hours

**Objectives:** By the end of this lab, you will be able to:

- Install Anaconda on your computer
- Understand and configure environment variables
- Create and manage Python virtual environments
- Run Python code and Jupyter notebooks
- Complete course assignments using your setup

## Understanding the Basics

Before we start installing software, let's understand some key concepts that will help you throughout this course.

### What are Virtual Environments?

Think of a virtual environment as a separate workspace for each of your projects. Imagine you have two different projects:

- Project A needs Python 3.9 and version 1.0 of a package called "data-tools"
- Project B needs Python 3.11 and version 2.0 of the same "data-tools" package

Without virtual environments, you could only have one version installed at a time, and switching between projects would be a nightmare. Virtual environments solve this problem by creating isolated spaces where each project can have its own Python version and packages without interfering with each other.

**Key benefits of virtual environments:**

- Keep different projects separate and organized
- Avoid conflicts between package versions
- Make it easy to share your project setup with others
- Prevent accidentally breaking one project while working on another

### Python Scripts vs Jupyter Notebooks

Python code can be written and executed in different ways. The two most common formats you'll use are:

**Python Scripts (.py files):**

Python scripts are plain text files containing Python code, saved with a `.py` extension. They are:

- Simple text files you can edit in any text editor
- Run from start to finish in one go
- Good for automation, data processing, and final production code
- Example: `my_program.py`

When you run a script, Python executes all the code from top to bottom and then exits.

**Jupyter Notebooks (.ipynb files):**

Jupyter Notebooks are interactive documents that combine code, text, and visualizations. They are:

- Divided into "cells" that can be run independently
- Interactive - you can run code, see results immediately, and modify your approach
- Great for data exploration, learning, and creating reports
- Can include formatted text, equations, images, and plots alongside your code
- Example: `data_analysis.ipynb`

In a notebook, you can run one cell at a time, experiment with different approaches, and see the results right away. This makes them perfect for learning and data analysis.

**When to use each:**

- Use scripts for: homework assignments that just need final code, automated tasks, programs that run repeatedly
- Use notebooks for: exploring data, learning new concepts, creating reports with visualizations, step-by-step analysis

In this course, you may use both depending on the assignment requirements.

## Part 1: Installing Anaconda

### What is Anaconda?

Anaconda is a distribution of Python that comes with many pre-installed packages for data science and scientific computing. It also includes conda, a package manager that makes it easy to install additional packages and manage different environments.

### Step 1: Download Anaconda

1. Go to [https://www.anaconda.com/download](https://www.anaconda.com/download)
2. Choose the installer for your operating system (Windows, macOS, or Linux)
3. Download the **latest Python 3.x version** (not Python 2.x)

### Step 2: Install Anaconda

#### Windows Installation

1. Run the downloaded `.exe` file
2. Click "Next" through the setup wizard
3. **Important:** On the "Advanced Installation Options" screen:
   - Check "Add Anaconda3 to my PATH environment variable" (even though it's not recommended, it makes things easier for beginners)
   - Check "Register Anaconda3 as my default Python 3.x"
4. Click "Install" and wait for the installation to complete (this may take 10-15 minutes)
5. Click "Finish"

#### macOS Installation

1. Open the downloaded `.pkg` file
2. Follow the installation prompts
3. Click "Continue" and "Install"
4. Enter your password when prompted
5. Click "Close" when installation is complete

#### Linux Installation

1. Open Terminal
2. Navigate to the directory where you downloaded the file
3. Run the following command (replace with your actual filename):

```bash
bash Anaconda3-2024.xx-Linux-x86_64.sh
```

4. Press Enter to read the license agreement, then type "yes" to accept
5. Press Enter to confirm the installation location
6. Type "yes" when asked to initialize Anaconda

### Step 3: Verify Installation

Open a **new** terminal or command prompt and run:

```bash
conda --version
```

You should see output like `conda 24.x.x`. If you get an error, proceed to the next section.

## Part 2: Setting Up Environment Variables

If the `conda --version` command didn't work, you need to add Anaconda to your system's PATH.

### Windows: Adding to PATH

1. Press `Win + X` and select "System"
2. Click "Advanced system settings" on the right
3. Click "Environment Variables" button
4. Under "User variables", find and select "Path", then click "Edit"
5. Click "New" and add these paths (adjust if you installed in a different location):
   - `C:\Users\YourUsername\anaconda3`
   - `C:\Users\YourUsername\anaconda3\Scripts`
   - `C:\Users\YourUsername\anaconda3\Library\bin`
6. Click "OK" on all windows
7. **Close and reopen** your command prompt
8. Test again with `conda --version`

### macOS/Linux: Adding to PATH

1. Open Terminal
2. Check which shell you're using:

```bash
echo $SHELL
```

3. Edit your shell configuration file:
   - If using bash: `nano ~/.bashrc`
   - If using zsh: `nano ~/.zshrc`

4. Add this line at the end of the file:

```bash
export PATH="$HOME/anaconda3/bin:$PATH"
```

5. Save the file (Ctrl+O, Enter, then Ctrl+X in nano)
6. Reload the configuration:

```bash
source ~/.bashrc  # or source ~/.zshrc
```

7. Test with `conda --version`

## Part 3: Creating Your First Environment

### Why Use Environments?

Virtual environments let you have different versions of Python and packages for different projects. This prevents conflicts and keeps your projects organized.

### Create a Course Environment

Open your terminal/command prompt and run these commands:

```bash
# Create a new environment named 'course_env' with Python 3.11
conda create -n course_env python=3.11 -y
```

This will take a few minutes as it downloads and installs Python.

### Activate Your Environment

```bash
# Windows
conda activate course_env

# macOS/Linux
conda activate course_env
```

Your prompt should now show `(course_env)` at the beginning, indicating the environment is active.

### Install Essential Packages

With your environment activated, install the packages you'll need:

```bash
# Install data science packages
conda install numpy pandas matplotlib jupyter -y

# Install additional useful packages
conda install scipy scikit-learn seaborn -y
```

### Verify Your Installation

Check that packages are installed:

```bash
# Check Python version
python --version

# Check installed packages
conda list
```

## Part 4: Running Python

### Method 1: Python Interactive Shell

With your environment activated, simply type:

```bash
python
```

You'll see the Python prompt `>>>`. Try some commands:

```python
print("Hello, Python!")
x = 5 + 3
print(x)
exit()
```

### Method 2: Running Python Scripts

1. Create a file called `test.py` with this content:

```python
# test.py
print("This is my first Python script!")

# Do some calculation
numbers = [1, 2, 3, 4, 5]
total = sum(numbers)
print(f"The sum is: {total}")
```

2. Run it from the terminal:

```bash
python test.py
```

### Method 3: Jupyter Notebook

Jupyter notebooks are interactive documents that mix code, text, and visualizations.

1. Start Jupyter:

```bash
jupyter notebook
```

2. Your browser will open automatically
3. Click "New" → "Python 3" to create a new notebook
4. Try this in a cell:

```python
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 10, 100)
y = np.sin(x)

plt.plot(x, y)
plt.title("My First Plot")
plt.show()
```

5. Press `Shift + Enter` to run the cell

## Part 5: Essential Commands Reference

### Conda Environment Commands

```bash
# List all environments
conda env list

# Create new environment
conda create -n myenv python=3.11

# Activate environment
conda activate myenv

# Deactivate environment
conda deactivate

# Delete environment
conda env remove -n myenv

# Export environment (for sharing)
conda env export > environment.yml

# Create environment from file
conda env create -f environment.yml
```

### Package Management Commands

```bash
# Install a package
conda install package_name

# Install specific version
conda install package_name=1.2.3

# Update a package
conda update package_name

# Remove a package
conda remove package_name

# List installed packages
conda list

# Search for a package
conda search package_name
```

### Jupyter Commands

```bash
# Start Jupyter Notebook
jupyter notebook

# Start Jupyter Lab (more advanced interface)
jupyter lab

# List running notebooks
jupyter notebook list

# Stop all notebooks
jupyter notebook stop
```

## Part 6: Practice Exercise

Let's put everything together! Complete this exercise to confirm your setup is working.

### Exercise: Create and Run Your First Python Script

1. Make sure your `course_env` is activated
2. Create a new file called `hello.py`
3. Copy this code into the file:

```python
# hello.py - My first Python script

# Print a welcome message
print("Welcome to Python Programming!")
print("=" * 40)

# Basic arithmetic
print("\nLet's do some basic math:")
a = 10
b = 5
print(f"{a} + {b} = {a + b}")
print(f"{a} - {b} = {a - b}")
print(f"{a} * {b} = {a * b}")
print(f"{a} / {b} = {a / b}")

# Working with lists
print("\nWorking with a list of numbers:")
numbers = [1, 2, 3, 4, 5]
print(f"My numbers: {numbers}")
print(f"Sum of numbers: {sum(numbers)}")
print(f"Largest number: {max(numbers)}")

# Your turn - add your name
your_name = "Your Name Here"  # Change this to your actual name
print(f"\nThis script was created by: {your_name}")
print("\nCongratulations! Your Python environment is working correctly!")
```

4. Before running, change "Your Name Here" to your actual name
5. Run the script:

```bash
python hello.py
```

6. You should see output showing the calculations and your name

**Expected Output:**
```
Welcome to Python Programming!
========================================

Let's do some basic math:
10 + 5 = 15
10 - 5 = 5
10 * 5 = 50
10 / 5 = 2.0

Working with a list of numbers:
My numbers: [1, 2, 3, 4, 5]
Sum of numbers: 15
Largest number: 5

This script was created by: [Your Name]

Congratulations! Your Python environment is working correctly!
```

**Congratulations!** You've successfully set up your Python environment and run your first Python script.

## Troubleshooting Common Issues

### Issue: "conda: command not found"

**Solution:** Anaconda is not in your PATH. Go back to Part 2 and set up environment variables.

### Issue: "Permission denied" errors on macOS/Linux

**Solution:** Add `sudo` before the command, or check file permissions with `chmod`.

### Issue: Packages fail to install

**Solution:** Try updating conda first:

```bash
conda update conda
conda update --all
```

### Issue: Jupyter won't start

**Solution:** Make sure jupyter is installed in your active environment:

```bash
conda install jupyter -y
```

### Issue: Environment activation doesn't work

**Solution:** 
- Windows: Use Anaconda Prompt instead of regular Command Prompt
- Mac/Linux: Make sure you've run `conda init` after installation

## Preparation for Next Lab

Before the next lab session:

1. Practice creating a new environment called `practice_env`
2. Install `numpy` and `matplotlib` packages in it
3. Create a simple Python script that prints your name and the current date
4. Explore the Jupyter notebook interface and try creating cells with markdown text

## Assignment Submission Setup

For course assignments:

1. Always activate `course_env` before starting work
2. Organize your work in folders by week/assignment
3. Use Jupyter notebooks for assignments that require visualization
4. Use `.py` scripts for pure code assignments
5. Include comments in your code explaining what each section does

## Quick Start Checklist

Use this checklist at the start of each assignment:

- [ ] Open terminal/command prompt
- [ ] Navigate to your assignment folder: `cd path/to/assignment`
- [ ] Activate environment: `conda activate course_env`
- [ ] Start Jupyter (if needed): `jupyter notebook`
- [ ] Begin working on your assignment

## Additional Resources

- [Anaconda Documentation](https://docs.anaconda.com/)
- [Conda Cheat Sheet](https://docs.conda.io/projects/conda/en/latest/user-guide/cheatsheet.html)
- [Jupyter Notebook Documentation](https://jupyter-notebook.readthedocs.io/)
- [Python Official Tutorial](https://docs.python.org/3/tutorial/)

## Questions?

If you encounter any issues during the lab, raise your hand and ask for help. Make sure you have a working setup before leaving today, as you'll need it for all future assignments.

---

**Lab Complete!** You're now ready to start programming in Python for this course.