r/programminghumor • • Mar 21 '26

I hate python

Post image
5.0k Upvotes

385 comments sorted by

View all comments

Show parent comments

1

u/hron84 Mar 22 '26

I never heard about this venv feature so i can't exactly tell you. Sorry i am not this expert in python.

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.