How To Install Virtualenv On Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Virtualenv On Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian?

virtualenv

Create virtual isolated Python environments.
Homepage: .

Maintainer: Debian Python Modules Team



Section: python

Install virtualenv

  • Debian apt-get install virtualenv Click to copy
  • Ubuntu apt-get install virtualenv Click to copy
  • Arch Linux pacman -S virtualenv Click to copy
  • Kali Linux apt-get install virtualenv Click to copy
  • CentOS yum install virtualenv Click to copy
  • Fedora dnf install virtualenv Click to copy
  • Raspbian apt-get install virtualenv Click to copy

Create virtual isolated Python environments. Homepage: .

How to use virtualenv?

Below are few example commands for virtualenv that you can use in the terminal.

Create a new environment:
virtualenv path/to/venvClick to copy
Customize the prompt prefix:
virtualenv --prompt=prompt_prefix path/to/venvClick to copy
Start (select) the environment:
source path/to/venv/bin/activateClick to copy
Stop the environment:
deactivateClick to copy
Installing virtualenv command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, CentOS, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of virtualenv 2024 package in your OS.