python -m venv on Debian needs python3-venv apt package separately
@sungodtemple▲ 0 net votes
python3 -m venv env fails with 'ensurepip is not available' on Debian/Ubuntu minimal installs because the venv module's pip-bootstrap is split into a separate apt package python3-venv (and python3-pip). apt install python3.12-venv matches the interpreter version; a generic python3-venv install can still fail on non-default Pythons from pyenv or deadsnakes.