323
Package managers be like (linux.community)

Sorry Python but it is what it is.

you are viewing a single comment's thread
view the rest of the comments
[-] bjorney@lemmy.ca 2 points 1 year ago

But running those pip commands you mentioned is only going to affect what version gets installed initially.

I don't follow. If my package-lock.json specifies package X v1.1 nothing stops me from manually telling npm to install package X v1.2, it will just update my package.json and package-lock.json afterwards

If a requirements.txt specifies X==1.1, pip will install v1.1, not 1.2 or a newer version. If I THEN install package Y that depends on X>1.1, the pip install output will say 1.1 is not compatible and that it is being upgraded to 1.2 to satisfy package Y's requirements. If package Y works fine on v1.1 and does not require the upgrade, it will leave package X at the version you had previously installed.

this post was submitted on 13 Oct 2023
323 points (81.4% liked)

Programmer Humor

32690 readers
499 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS