As title. I have many projects that uses more or less the same packages, and I would know if there’s a way to point to the same files without reinstalling them in every venv, wasting a lot of space (the requirements are very heavy).
One option is to use conda instead of venvs, since conda (by default) uses hardlinks. The actual files for a particular version of a particular package are only installed once and then each environment hardlinks to those same files. This means they only take up space on disk once (although some tools in some contexts may misleadingly report that the space is used multiple times).
How are you checking? Your file explorer will just show them as normal files.
You would need to use other tools to see that two paths are hardlink to the same file.
Aaaah this is quite interesting. I never used hard links, only soft links, so I assumed they will appear the same in ll. But you are right, this can’t be because they are regular file that simply points to the same inode. ll -i shows it.
Ty a lot, I thought uv was “only” a faster pip. It seems on the contrary an invaluable tool. And ty also for the patience.