Live data from Hacker News

Escaping from Anaconda's Stranglehold on macOS

paulromer.net

171–180 of 286 posts

Re: Escaping from Anaconda's Stranglehold on macOS

#171

Earlier quoted context omitted.

Python has dogshit package management that makes java look well thought out and sane.

PYTHON @&$!! The Python community needs to solve this ASAP. This almost weekly pain point has turned a language I used to love in college into one of my most despised languages. The fact that the ML community uses this broken platform is infuriating. Make a Python version 4 that focuses only on fixing the packaging. 100% per-project hermeticy. No global packages whatsoever. Solve just this issue and bring the entire…

Wouldn’t this end up like the XKCD standards cartoon. You’d have yet another Python package system and even more fragmentation.

https://xkcd.com/927/

Re: Escaping from Anaconda's Stranglehold on macOS

#173

> 10. What Changes When You Are Free > You will not be forced to work inside something known as a “virtual environment.” Oof, this terrible advice cancels out an otherwise reasonable post. Beginners who don't know what they're doing are the last people who should be `pip install -r requirements.txt`-ing into the system Python the way this article is recommending. That's not only going to make working on multiple proj…

Yes. I recently had to debug my gf’s entire work computer setup getting fubar’d from installing a pip package at a user level that conflicted with the name of some package used internally by the 10k+/seat/year software the company devices have installed. Proximal cause? The installer “helpfully” failed over to installing at the user level when she didn’t have permissions to write to the place she told it to. Root cau…

Sigh https://dublog.net/blog/so-many-python-package-managers/

Re: Escaping from Anaconda's Stranglehold on macOS

#174

Earlier quoted context omitted.

PYTHON @&$!! The Python community needs to solve this ASAP. This almost weekly pain point has turned a language I used to love in college into one of my most despised languages. The fact that the ML community uses this broken platform is infuriating. Make a Python version 4 that focuses only on fixing the packaging. 100% per-project hermeticy. No global packages whatsoever. Solve just this issue and bring the entire…

Wouldn’t this end up like the XKCD standards cartoon. You’d have yet another Python package system and even more fragmentation. https://xkcd.com/927/

If Python users weren't comfortable living in that reality already, they wouldn't still be Python users.

Re: Escaping from Anaconda's Stranglehold on macOS

#175

Earlier quoted context omitted.

Yes. I recently had to debug my gf’s entire work computer setup getting fubar’d from installing a pip package at a user level that conflicted with the name of some package used internally by the 10k+/seat/year software the company devices have installed. Proximal cause? The installer “helpfully” failed over to installing at the user level when she didn’t have permissions to write to the place she told it to. Root cau…

Python has dogshit package management that makes java look well thought out and sane.

> that makes java look well thought out and sane

That's not hard. Java's package management is well thought out and sane.

Re: Escaping from Anaconda's Stranglehold on macOS

#176

> 10. What Changes When You Are Free > You will not be forced to work inside something known as a “virtual environment.” Oof, this terrible advice cancels out an otherwise reasonable post. Beginners who don't know what they're doing are the last people who should be `pip install -r requirements.txt`-ing into the system Python the way this article is recommending. That's not only going to make working on multiple proj…

I don't see how it could be correct to say that I'm recommending that students pip install into the system Python.

On macOS, there hasn't been a system Python since 12.3 came out in Jan of 2022. And as far as I know, there was never a system Python on Windows.

Re: Escaping from Anaconda's Stranglehold on macOS

#177
post #169

> 10. What Changes When You Are Free > You will not be forced to work inside something known as a “virtual environment.” Oof, this terrible advice cancels out an otherwise reasonable post. Beginners who don't know what they're doing are the last people who should be `pip install -r requirements.txt`-ing into the system Python the way this article is recommending. That's not only going to make working on multiple proj…

IMO what needs to happen is python needs to get rid of system installs and only work via venv. It should check the current folder for some .venv or something and auto-config itself to the current directory (or complain that you need to config with a messages like "python not configured for current folder. Run 'source bin/activate' to configure. Honestly thought that could be so much better. The entire problem of pyth…

Python developers agree. See PEP 668 – Marking Python base environments as “externally managed” – https://peps.python.org/pep-0668/

Re: Escaping from Anaconda's Stranglehold on macOS

#178
post #27

Avoiding sh overcomplicates this. Just give them a one liner: mv ~/.zshrc ~/._zshrc and vice versa. Pasting a cmd is not rocket science.

Man you say that but many people simply do not understand that a command even is. They don't know to hit return after pasting or how much of the command to copy. Or they'll paste it in a text editor. There's just a lot of people that did not grow up using computers the same way as many here. Whether it's they grew up on mobile devices or have only ever used a GUI. I don't think it's reasonable to expect a developer t…

> Hell I know people with decades of Unix experience that don't know basic CLI stuff or reach for the GUI to install packages or manage things.

What does "Unix experience" even mean if you can't sling the basics in the shell?

Re: Escaping from Anaconda's Stranglehold on macOS

#179
post #169

> 10. What Changes When You Are Free > You will not be forced to work inside something known as a “virtual environment.” Oof, this terrible advice cancels out an otherwise reasonable post. Beginners who don't know what they're doing are the last people who should be `pip install -r requirements.txt`-ing into the system Python the way this article is recommending. That's not only going to make working on multiple proj…

IMO what needs to happen is python needs to get rid of system installs and only work via venv. It should check the current folder for some .venv or something and auto-config itself to the current directory (or complain that you need to config with a messages like "python not configured for current folder. Run 'source bin/activate' to configure. Honestly thought that could be so much better. The entire problem of pyth…

This is already the case on Arch, where pip will yell at you if you try to install anything to either the user or system score.

Re: Escaping from Anaconda's Stranglehold on macOS

#180

Earlier quoted context omitted.

After that I wonder why people think Python is a good choice to teach as a first experience in programming. Virtual environments is actually my biggest gripe with Python. I think it is interesting to consider why Python is so popular despite such fiascos. The answers can be very informative but can also be giant red flags.

Because every option sucks for teaching. C/C++? Full of footguns. Java/C#? Too complicated for beginners. Pascal? Outdated. Etc. I personally prefer C to teach first-year CS students but just as the lesser evil. A good first programming language is sorely lacking. (Note that I'm talking about the imperative programming paradigm. The debate on whether one should start with functional programming is outside the scope o…

How in the world is c# too complicated? Console app, top level statements, vs code. As easy as Python. Easier because your env isn’t messed up.

If they can’t manage that they have no business doing data science or something similar to begin with

Post reply on HN