e-learning

Virtual Environments For Software Development

Abstract

"Virtual Environments" allow you to easily manage your installed Python packages and prevent conflicts between different project's dependencies. In general most modern projects should use conda for dependency management, but venv can be convenient for Python-only projects.

About This Material

This is a Hands-on Tutorial from the GTN which is usable either for individual self-study, or as a teaching material in a classroom.

Questions this will address

  • What are virtual environments in software development and why you should use them?
  • How can we manage Python virtual environments and external (third-party) libraries?

Learning Objectives

  • Set up a Python virtual environment for our software project using venv and pip.
  • Run our software from the command line.

Licence: Creative Commons Attribution 4.0 International

Keywords: Foundations of Data Science, jupyter-notebook

Target audience: Students

Resource type: e-learning

Version: 2

Status: Active

Learning objectives:

  • Set up a Python virtual environment for our software project using venv and pip.
  • Run our software from the command line.

Date modified: 2023-05-18

Date published: 2022-10-19

Authors: Helena Rasche, The Carpentries

Contributors: Helena Rasche, Marius van den Beek, Peter van Heusden, Saskia Hiltemann

Scientific topics: Software engineering


Activity log