3 ms·
Virtual environments don't solve the problem of two dependencies that you need having conflicting requirements.
by int_19h 2y ago
Virtual environments don't solve the problem of two dependencies that you need having conflicting requirements.
- o11c 2y agoThat subproblem is fundamentally unfixable unless you're willing to allow incompatible objects to be passed around, which is a really bad idea. If your code does: o = foo_v1.get_obj() foo_v2.use_obj(o) then this is almost always undefined behavior, since the authors of `foo` will almost certainly not write their APIs to accept instances with different internals.
- Dylan16807 2y agoWith a more advanced system you can look at whether a package's use of foo is exposed in its API or completely internal, and then allow different isolated islands of packages to use different versions of foo.