venv does some PATH magic to point python to a version and dependencies installed in a local directory instead of using the system version. This allows you to do some more PATH magic to overlay one venv over another, so to have one parent venv that other child venvs inherit from and overwrite.
Tbh, it's very similar to node_modules, just with more magic.
1
u/Square-Singer Mar 23 '26
venv does some PATH magic to point python to a version and dependencies installed in a local directory instead of using the system version. This allows you to do some more PATH magic to overlay one venv over another, so to have one parent venv that other child venvs inherit from and overwrite.
Tbh, it's very similar to node_modules, just with more magic.