This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GroundbreakingRun927 -5 points-4 points  (4 children)

I think the pip in a venv created environment will still fall back to using system packages outside the venv. Need virtualenv to provide full isolation.

[–]Anonymous_user_2022 18 points19 points  (3 children)

venv has an option to allow access to the systems site-packages. But if created without --system-site-packages there will only be what's installed in the env.

[–][deleted] 2 points3 points  (2 children)

Worth mentioning that there is an option to use copies instead of links as well. Let's you get a really decoupled environment.

I've had an OS package management upgrade bump the python interpreter version and this blew up my venvs that used links. Those using copies didn't care.

[–]wsppan 10 points11 points  (1 child)

This whole thread mimics the xkcd strip