Skip to main content

Virtual environments guides

Windows:

First install virtualenv as follows:

pip install virtualenv

And then create and activate a virtual environment:

python -m virtualenv <path_to_virtual_environment>
<path_to_virtual_environment>\Scripts\activate

Linux:

pip install virtualenv
python -m venv <path_to_virtual_environment>
source <path_to_virtual_environment>/bin/activate

Mac:

Intel:

First install virtualenv as follows:

pip install virtualenv

And then create and activate a virtual environment:

python -m venv <path_to_virtual_environment>
source <path_to_virtual_environment>/bin/activate

For more resources, see: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/