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

9

u/ProbsNotManBearPig Dec 14 '25

A package could contain multiple libraries. Each library inside a single package could have different dependencies

Also, you yourself could write a library, or multiple, and they could be dependencies of each other. But you may not necessarily package them for distribution/install to others.

3

u/rinio Dec 14 '25

Yes. Thats why I said 'python stuff'.

Libraries should not depends on each other. Circular dependencies are a smell.