319
Package managers be like (linux.community)
submitted 11 months ago by [email protected] to c/[email protected]

Sorry Python but it is what it is.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 3 points 11 months ago

The behaviour you mention is from npm install, which will put the same exact version from the package-lock.json, if present. If not it will act as an npm update.

npm update will always update, and rewrite the package-lock.json file with the latest version available that complies with the restrictions defined on the package.json.

I may be wrong but, I think the difference may be that python only has the behaviour that package-lock.json offer, but not the package.json, which allows the developer to put constraints on which is the max/min version allowed to install.

[-] [email protected] 2 points 11 months ago

If you want min-max behaviours you need to use wrappers like pipenv or jump into conda/mamba. Pip offers basic functionality because there are more advanced tools that the community uses for the more advanced use cases.

this post was submitted on 13 Oct 2023
319 points (81.3% liked)

Programmer Humor

32060 readers
1173 users here now

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

Rules:

founded 5 years ago
MODERATORS