This is an old revision of the document!
https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/ apt install python3-venv python3 -m venv /root/venv1 source /root/venv1/bin/activate which python which ansible deactivate