venv
Create lightweight virtual environments in python. More information: https://docs.python.org/3/library/venv.html.
-
Create a python virtual environment:
python -m venv {{path/to/virtual_environment}}
-
Activate the virtual environment (Linux and Mac OS):
source {{path/to/virtual_environment}}/bin/activate
-
Activate the virtual environment (Windows):
{{path\to\virtual_environment}}\Scripts\activate.bat
-
Deactivate the virtual environment:
deactivate
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.