A fresh virtual environment often ships the pip version that came bundled with the interpreter. I add one flag so the venv starts with a newer one.
python3 -m venv --upgrade-deps .venv
.venv/bin/python -m pip --version
--upgrade-deps upgrades pip inside the new environment right after it is created (on Python before 3.12 it also upgrades setuptools). It needs network access to PyPI at creation time. Calling .venv/bin/python -m pip directly means you use that environment’s pip without activating anything, which is handy in scripts and cron jobs. On Debian and Ubuntu you need the python3-venv package installed first.
Further reading: venv documentation