r/Python • • Apr 30 '18

xkcd: Python Environment

Post image
2.4k Upvotes

388 comments sorted by

View all comments

Show parent comments

1

u/[deleted] May 01 '18

I have never understood that argument. The python import statement is not versioned, so there can be exactly one version of a dependency installed. If that makes a conflict between requirements, no amount of magical Reitzing can fix that.

Thus the argument is without merit.

1

u/leom4862 May 01 '18

What do you do if project A relies on FooPackage version X and proejct B relies on FooPackage version Y?

1

u/[deleted] May 01 '18

The same thing you will have to do when pipenv fails doing anything about it.

0

u/leom4862 May 01 '18

I create a new virtualenv for each project (pipenv --python xx), there are no such conflicts, because each project can use its own version of FooPackage.

→ More replies (0)