Virtual environments

Posted on August 06, 2021



The venv module included with Python is used to create and manage virtual environments.

# Create a virtual environment named `myenv` within the current folder
$ python -m venv myenv

# Activate the virtual environment
$ source myenv/bin/activate

# Deactivate the virtual environment
$ deactivate


Back


Gavin Wiggins © 2021