John Gordon

Assistant Professor, David Eccles School of Business

Associate Instructor, College of Humanities

University of Utah logo  University of Utah

Tech Guide: Install and Configure Visual Studio Code for Python

A step-by-step guide for installing Visual Studio Code and preparing it for Python programming.

Development Tools Beginner Updated June 2026

Disclaimer & Important Cautions

These Tech Guides and instructions are provided in good faith as a general educational guide. Technology changes over time, and settings, software versions, installation steps, and security practices may vary by system.

I cannot guarantee that these steps will work in every environment, and I am not responsible for data loss, configuration problems, system errors, security issues, downtime, or other problems that may result from following this guide.

  • Back up important files before making system or software changes.
  • Document your current settings before changing them.
  • Use administrator privileges carefully.
  • Do not perform these steps on a production system unless you understand the risks.
  • Download installers only from official or trusted sources.
  • When in doubt, consult official documentation or a qualified technician.

Overview

Visual Studio Code (VSC) is an Integrated Development Environment (IDE) that is very popular and widely used. It is a particularly good choice for an IDE, particularly for Python programming and also for many other programming languages as well. Visual Studio Code (VSC) is a popular and user-friendly code editor that has rapidly become a favorite among both beginner and expert Python programmers. Its appeal lies in its lightweight nature, extensive customization options, and thorough support for Python development. With VSC, you can write, debug, and run Python code efficiently. The editor provides intelligent code completion, error highlighting, and an integrated terminal, making it easier to test your scripts and manage packages. Additionally, VSC's support for version control with Git and collaboration tools enhances coding workflows, making it an ideal choice for those learning and working with Python.

Installing Visual Studio Code (VSC)

To install Visual Studio Code (VSC) on your computer, select your operating system tab below for OS-specific instructions:

Choose your operating system



Setup & Walkthrough

After you have installed VSC select the Setup tab below for instructions how to prepare VSC for the Python projects and programming examples in this book.

Select Setup for VSC setup instructions.

Final Notes:
  • Install Visual Studio Code first, then configure it for Python programming.
  • Use the Python Extension Pack and Code Runner to support beginning Python work.
  • Create a workspace and virtual environment for each major Python project.
  • Use the interpreter selection command whenever VSC is pointing to the wrong Python version or environment.