use venv with python package code example Example 1: how to create a python venv python3 -m venv tutorial-env Example 2: python virtualenv venv python -m venv venv