Python venv (Virtual Environment) is a tool that comes bundled with Python 3.3 and later versions. It allows you to create isolated environments for Python projects.
To create a virtual environment you need to use the python venv
module
python3.9 -m venv myenv
We need to need to activate the environment variable so that when we run Python or install packages, it happens within the virtual environment.