Python Reading

Key Ideas

Getting Started

To install Anaconda

This includes Numpy and more data science modules we will also use later.

🐍 Installing NumPy with Anaconda (Mac & Windows)

>>>>>>>>These instructions were generated by ChatGPT. We can try this out together in class and see if there are problems.*

✅ Why use Anaconda?

Anaconda is a Python distribution that already includes NumPy and many other useful libraries—so students usually don’t need to install anything extra.


⬇️ Step 1: Download Anaconda

  1. Go to the official website:
    https://www.anaconda.com/download
  2. Download:

To NOT create an account...

✅ Easiest workaround (no account required)

Use the direct download page instead of the main landing page:

👉 Go to: https://repo.anaconda.com/archive/

From there:

  1. Scroll to the version you want (usually the latest is fine)
  2. Download the installer directly:
  3. Run the installer normally

This completely bypasses any login/signup prompt.


⚙️ Step 2: Install Anaconda

💻 Windows

  1. Double-click the downloaded installer
  2. Click Next → Agree → Next
  3. Choose Just Me (recommended)
  4. Leave settings as default
  5. Click Install

🍎 Mac

  1. Open the downloaded .pkg file (easier to use than .sh)
  2. Click through the installer steps
  3. Install with default settings

Apple Silicon Macs (M1, M2, M3, etc.) Most newer Macs (≈ 2020+)

Look for: arm64 or Apple Silicon

Intel Macs Older Macs (pre-2020)

Look for: x86_64


▶️ Step 3: Open Anaconda Navigator

After installation:


🧪 Step 4: Launch Python

You have two easy options:

Option A (Recommended for beginners)

Launch:

Click Launch, then open a new Python notebook.


Option B (If you want something like IDLE)

Launch:


🔍 Step 5: Test NumPy

In your notebook or Spyder, type:

import numpy as np
print(np.array([1, 2, 3]))

If you see:

[1 2 3]

🎉 NumPy is already installed and working!


⚠️ Troubleshooting

“It won’t open”

“Navigator is slow”

“Still want to use IDLE?”

Anaconda uses its own Python. If students open IDLE from their system Python, NumPy might not be there.

👉 Best fix: Use Jupyter or Spyder instead.


🧠 Teacher Tips

* >>>>>>>> End of ChatGPT instructions

To install only Numpy:

In-Class Activity

Active Learning


Optional Alternative NumPy Installation for Windows Users

Enter the second instruction in the MS-DOS command prompt, from the same directory where the module was downloaded.