DAY 1

Environment Setup 🛠️💻⚡

Set up Python, VS Code, virtual environments, and required libraries to prepare your AI Agent development environment.

⏱ 30 mins
⚡ +100 XP

Day 1 — Setup Your Environment

AI Agent Course — RohithBuilds

Today you will set up everything needed to build your AI Agent. By the end of this lesson your computer will be ready and you will have run your first Python code.

Step 1 — Check if Python Is Installed

Open Command Prompt and run:

python --version

Expected Output

Expected output of python --version command

If It Doesn't Work

Try:

py --version

If you see a Python version, Python is installed successfully.

Step 2 — Create Your Project Folder

Open Command Prompt and run:

mkdir ai-agent-course
cd ai-agent-course

Expected Output

Expected output after creating and entering the project folder

You will be inside the ai-agent-course folder.

Step 3 — Create a Virtual Environment

Run:

python -m venv venv

Activate it:

Windows

venv\Scripts\activate

Mac / Linux

source venv/bin/activate

Expected Output

You should see:

Expected output showing virtual environment activation prompt

at the beginning of your terminal line, which means the virtual environment is active.

Step 4 — Install VS Code

  1. Download and install VS Code from https://code.visualstudio.com
  2. Open VS Code
  3. Click File → Open Folder
  4. Select your ai-agent-course folder

Expected Output

VS Code opens successfully

ai-agent-course folder is visible in the Explorer

VS Code with ai-agent-course folder open in Explorer

Step 5 — Your First Python File

Create a file named main.py and add:

print("Hello, World!")
main.py file with Hello World code in VS Code

Run the file:

python main.py

Expected Output

Terminal showing Hello World output
Hello, World!

Step 6 — Install Required Libraries

Run the following command in Command Prompt:

pip install groq python-dotenv duckduckgo-search flask requests
pip install command running in terminal

Expected Output

You should see messages similar to:

Expected output of pip install showing successful installation messages

Step 7 — Verify All Libraries Are Installed

Open main.py and add:

try:
    import groq
    print("groq is ready")
except ImportError:
    print("groq not installed")

try:
    import dotenv
    print("python-dotenv is ready")
except ImportError:
    print("python-dotenv not installed")

try:
    from duckduckgo_search import DDGS
    print("duckduckgo-search is ready")
except ImportError:
    print("duckduckgo-search not installed")

try:
    import flask
    print("flask is ready")
except ImportError:
    print("flask not installed")

print("\nAll libraries ready! You are set for Day 2.")

Run:

python main.py

Expected Output

groq is ready
python-dotenv is ready
duckduckgo-search is ready
flask is ready

All libraries ready! You are set for Day 2.
Terminal showing all libraries ready confirmation

✅ Day 1 Complete

Here is what you accomplished today:

Key Takeaways

  • Python version checked ✅
  • Project folder created ✅
  • Virtual environment active ✅
  • VS Code installed ✅
  • All libraries installed ✅
  • First Python code ran ✅

What is Coming Tomorrow

On Day 2 you will:

  • Create a free Groq account at console.groq.com
  • Get your API key
  • Make your first real AI call in Python and see a response in under 1 second

See you there! 🚀

← Back to Course