Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Setting Up the Development Envi | Python Fundamentals lesson | BraveProgrammer
  1. Courses
  2. /
  3. Python Fundamentals

Lesson 3 of 55

·Python

Setting Up the Development Environment

20 minutes

Course progress5%

What you'll learn

Keep these ideas in mind as you work through the lesson.

4 points
  • Choose an editor (VS Code recommended).
  • Install the official Python extension for linting and debugging.
  • Activate a virtual environment before installing packages with `pip`.
  • Use `pip freeze > requirements.txt` to lock dependencies.

Setting Up the Development Environment

Now that Python is installed, let’s configure the tools you’ll use day‑to‑day.

IDE / Code Editor

  • VS Code – Free, lightweight, and has a powerful Python extension.
  • PyCharm Community – Full‑featured IDE, great for larger projects.
  • Sublime Text, Atom, or vim are also viable choices.

Extension Essentials (VS Code)

  1. Open the Extensions view (Ctrl+Shift+X).
  2. Search for Python (by Microsoft) and install it.
  3. The extension gives you linting, debugging, IntelliSense, and Jupyter notebook support.

Package Management with pip

pip is Python’s package installer. After activating your virtual environment, you can install any third‑party library.

pip install requests

You can freeze exact versions for reproducibility:

pip freeze > requirements.txt

Quick sanity check

Create a file test_env.py with:

import sys
print('Python executable:', sys.executable)

Run python test_env.py – it should point to the interpreter inside your virtual environment.

You now have a fully‑functional development setup!

Make it stickPractice what you've learned1 quiz · 5 practical tests · Optional activities from Python FundamentalsBrowse activities
Previous lessonIntroduction to PythonContinue to lesson 4Variables and Data TypesBack to Python Fundamentals curriculum