Re:Hello Yarn 2, Goodbye node_modules
by disgruntledphd2 on Tuesday August 10, 2021 @05:08AM
(#28126629)
As long as you only have pure python dependencies, pip is fine. Unfortunately, that's very uncommon for DS/ML python at least.
[ Parent
| on HN ]
My experience with stuff with C-extensions (although not specifically ML packages) is that there is almost always a wheel published for them these days, so pip works just fine and I almost never have to think about if something is pure python or not.
I wish I could say I never had to think about it, though.
pip install numpy
pip install pandas
??
Re:Hello Yarn 2, Goodbye node_modules
by disgruntledphd2 on Tuesday August 10, 2021 @03:41PM
(#28133266)
I'm really really tired of explaining this, tbh.
The trouble is firstly that pip will happily install conflicting versions of numpy which breaks your code.
This occurs because pip didn't check dependencies until last year, which is one of the reasons it's a terrible package manager.
Now it just gets stuck spinning it's wheels for ages and then errors out, which is better but still not good.
Conda, while really slow actually handles c level dependencies which makes it usable.
Re:Hello Yarn 2, Goodbye node_modules
by void_mint on Wednesday August 11, 2021 @12:26AM
(#28138030)
> I'm really really tired of explaining this, tbh.
So don't!
Re:Hello Yarn 2, Goodbye node_modules
by disgruntledphd2 on Wednesday August 11, 2021 @02:40AM
(#28138816)
Fair.
I consider it a public service to keep mentioning this though, so that in future jobs, I don't have to explain over and over again why I don't want to use pip to "manage" our dependencies.