logoalt Hacker News

spinagonyesterday at 2:43 AM4 repliesview on HN

What about pip? It's either installed or immediately available on many OSes


Replies

Fabricio20yesterday at 4:51 AM

pip might be but it was historically super inconsistent (at least in my experience). Is it `pip install`? `python3 -m pip install`? maybe `pip3 install`? Yeah ubuntu did a lot of damage to pip here. npm always worked because you had to install it and it didnt have a transition phase from python2 being in the OS by default.

pipersweyesterday at 2:50 AM

`pip install` either doesn’t work out of the box or has the chance to clobber system files though

jitlyesterday at 3:30 AM

system pip w/ sudo usually unleashes Zalgo, i’d rather curl | bash but npm is fine too. it’s just about meeting people where they’re at, and in the ai age many devs have npm

if you build for the web, no matter what your backend is (python, go, rust, java, c#), your frontend will almost certainly have some js, so likely you need npm.

nikanjyesterday at 3:28 AM

This is about eight years old. The python situation has mostly gotten worse since https://xkcd.com/1987/

show 2 replies