3 ms·
For comparison, with bare-bones tools (assuming `pip` is a globally-visible Pip version 22.3[0] or better): $ python -m venv --without-pip .venv $ pip
by zahlman 2y ago
For comparison, with bare-bones tools (assuming `pip` is a globally-visible Pip version 22.3[0] or better):
$ python -m venv --without-pip .venv
$ pip --python .venv/bin/python install -r https://raw.githubusercontent.com/astral-sh/uv/refs/heads/main/docs/requirements.txt
This venv creation is instantaneous, because it doesn't install Pip in the new venv. On my 10-year-old machine, with cached packages (it still has to unzip everything and move it around), the installation takes about 8.5 seconds.
I have some wrapper scripts defined locally to smooth out this process; I can do `make-project-venv` (which puts the venv in `.local/.venv` and also attempts to install the current project with `pip --python ... install -e .`) and then `activate-local` and then `pipe install ...`.
[0]: https://pip.pypa.io/en/stable/news/#v22-3 https://pip.pypa.io/en/stable/news/#v22-3