Comment

Comment by zo1

I have yet to come across a scenario where installing a python library as global ended up being an issue in the python ecosystem. You either need it, or you don't. Short of some contrived scenario where a piece of code is not able to utilize a certain package's latest code and you have to juggle two different versions of that package. If I had something like that, I'd fix the code, not juggle old package versions or install all dependencies in my project's sub-folder.

> "For example, why does Python packaging need such a complicated bootstrapping process? Install ensure_pip, then the real pip, and on top of that virtualenv."

It's not that complicated:

    sudo apt-get install python-pip python-dev build-essential

    sudo pip install --upgrade pip
Then you can install any python package to your heart's content with:

    pip install PACKAGE
You don't need virtualenv, nor do you need ensurepip.

>"In the Python/PIP world, everything is central and even today you still have to accept extra hassle to get a sane, local setup."

I think you may be coming at it from a javascript perspective where you expect it to work according to the way you're used to it working with Node/NPM. I have absolutely no hassle installing anything in the python/pip ecosystem. Except maybe MySQL and OpenCV, I'll grant you that. But those are separate discussions as they require external dependencies outside of python's packaging.

parent zo1 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton