pypa

virtualenv: Create Isolated Python Environments

virtualenv creates isolated Python environments so projects can manage dependencies separately. It is useful for developers and teams that need reproducible project setups or want to avoid conflicts between installed packages.

View on GitHub Compare
Stars
5.1k
Forks
1.1k
Stars, last 30 days
+18

Our take

Health score

81/100

How it is scored
Activity
86
Community
73
Issues
77
Pull requests
86

+18 stars in the last 30 days

  • Merges more pull requests than 99% of the projects we track
  • Releases more often than 88% of the projects we track
  • Closes issues faster than 81% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

5,071

Forks

1,151

Change since Nov 18, 2026: 0 stars·+2 forks

Overview

virtualenv is a Python tool for creating isolated environments, each with its own installed packages. It helps developers work on multiple projects without their dependencies interfering with one another or with the system Python installation.

Use it when you need separate dependency setups for development, testing, or deployment. The project is maintained by PyPA and provides documentation, installation guidance, and a changelog through its official site.

Key Features

  • Creates isolated Python environments for individual projects.
  • Keeps project packages separate from other environments and system-level packages.
  • Supports Python implementations and versions listed on its PyPI page.
  • Provides command-line installation and usage documentation.
  • Offers project documentation and a changelog on the official site.

Use Cases

  • Python developers can keep dependencies for separate applications from conflicting.
  • Teams can create isolated setups for development and testing across projects.
  • Package maintainers can test software in an environment separate from their everyday tools.
  • Developers who work with multiple Python implementations or versions can create distinct environments for their work.

Getting Started

Install from PyPI with python -m pip install virtualenv. See the README and installation documentation for detailed instructions.

Considerations

virtualenv is focused on creating Python environments, not managing project code or resolving every aspect of a development workflow. Consult its documentation for supported Python implementations and versions, and follow the setup instructions for your platform.

Found this useful?

Share it with someone who would like virtualenv.