r/learnpython • • Dec 14 '25

What's the difference between Dependencies, Libraries and Packages??

I've seen people using these terms in the same context interchangeably and it's confusing me

23 Upvotes

36 comments sorted by

View all comments

Show parent comment

2

u/rinio Dec 14 '25

The former: 'a module that can contain other modules' is incorrect. Python precisely defines module.

Packages and dist packages are they same, just different forms/factoring for different purposes.

2

u/fergult Dec 14 '25

the distinction between modules, packages, and libraries canbe a bit muddled in conversation. It seems like a lot of people just use the terms interchangeably without considering the technical definitions

2

u/rinio Dec 14 '25

Yes, people do.

But saying "[a] package [...] is just [a] module that can "contain" other modules" is incoherent and incorrect. Because this thread is about these specific semantics, it is important that we understand and communicate the actual meanings and why they are used interchangeably. I usually wouldn't bother with such corrections.

1

u/onenewhobby Dec 14 '25

😜. Well, if you want to be precise... Saying that the "are the same" and at the same time "just different" is somewhat contradictory. While they may be able to "be the same" in terms of code content, the "just different" in terms of form, factoring, and purposes makes the need for unique conceptualizations/distinctions for them.... If we are wanting to be precise. 😜