How to Install Python Virtual Environment on Windows | Ubuntu | Linux | Mac?
This guide will show you how to install virtualenv on Windows, Ubuntu/Linux, and Mac.
virtualenv is a tool that helps to create an isolated environment for a Python project.
Check if virtualenv is already installed by executing the following on the command line:
virtualenv --version
If virtualenv is already installed, the output should look something like this:
virtualenv 20.10.0
If you do not have virtualenv installed on your computer, then you can install it.
How to Install virtualenv on Windows?
To install virtualenv on windows, run the following command on the command line:
pip3 install virtualenv
How to Install virtualenv on Ubuntu/Linux?
To install virtualenv on Ubuntu/Linux, run the following command on the terminal:
pip3 install virtualenv
How to Install virtualenv on Mac?
To install virtualenv on Mac, execute the following command on the terminal:
pip3 install virtualenv