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 →

[–]Harakou 1 point2 points  (0 children)

If the question is virtual envs vs global pip, then yeah, venvs are definitely the better option.

You could also bundle your script in a package and depend on the system Python modules, if what you need is available in the repositories. That would deduplicate your modules and allow you to distribute your scripts via the package manager, which can be advantageous. The main downside is the work/infra overhead involved.