4 ms·
A virtual environment is just a project-specific class path, but for Python.
by orf 2y ago
A virtual environment is just a project-specific class path, but for Python.
- tcptomato 2y agoWhich also installs a complete JVM in it.
- zahlman 2y agoNot really; it can just symlink the base executable and make a few folders and scripts. $ python -m venv --without-pip test-venv && du -sh test-venv 56K test-venv
- dragonwriter 2y agoConceptually, a venv has its own executable. Physically, that can just be a symlink to the system python (or another version that is still potentially shared with multiple venvs.)
- simonw 2y agoThat's one of the great things about uv: it uses clever symlink tricks to avoid installing copies of things, so it's wildly fast.