5 ms·
I cannot make any sense of how to use packages in python. So I just don't. I don't use python all that much, but if it was easy and obvious what was the right
by recursive 5y ago
I cannot make any sense of how to use packages in python. So I just don't. I don't use python all that much, but if it was easy and obvious what was the right way to do it, maybe I would. But in the rare cases that I write python, I write zero-dependency code. Or maybe I download a library and just manually copy it to a file.
At least one time, I tried to get into python packages, but I recall there seemed to be about a half a dozen methods for doing it at the time. I didn't try very hard.
- void_mint 5y agoI think this is a bit much. Pip takes almost no time to set up and use. It ships with MacOS in fact.
- disgruntledphd2 5y agoAs long as you only have pure python dependencies, pip is fine. Unfortunately, that's very uncommon for DS/ML python at least.
- void_mint 5y agopip install numpy pip install pandas ??
- disgruntledphd2 5y agoI'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.
- void_mint 5y ago> I'm really really tired of explaining this, tbh. So don't!
- disgruntledphd2 5y agoFair. 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.
- Kihashi 5y agoMy 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.