Live data from Hacker News

Overview of Python dependency management tools

modelpredict.com

51–60 of 184 posts

Re: Overview of Python dependency management tools

#51

For some of the problems that Node.js and JS at large have with a centralized package manager, I for one am very happy that it's not in the python situation. 100% of the packages I've tried to install in the last 3+ years are simply `npm install PKG`.

pip install

works even on iPhone (for pure Python packages in Pythonista for iOS)

Re: Overview of Python dependency management tools

#52
post #5

It's 2020, but the python community still has not converged to a small set of sane solutions. It seems to me that Ruby, PHP, JS, and Rust communities have solved the problem.

I'm only familiar with Python, Javascript and Rust. It seems to me that Rust is the only one that has "solved" this problem. I dont think there are any real Python devs who thinks dependency management is solved. However, why would you claim Javascript has a good solution? The inconsistencies between node and web dev is odd at best. Babel compilation is annoying and slow. Are we even standardized on webpack yet? Can…

> As pioneers in dependency management

Maybe a noob question, but how come they are pioneers? Weren't there languages with package systems before Python and JS?

Re: Overview of Python dependency management tools

#54
post #49

For some of the problems that Node.js and JS at large have with a centralized package manager, I for one am very happy that it's not in the python situation. 100% of the packages I've tried to install in the last 3+ years are simply `npm install PKG`.

Do popular Node packages rely on C and Fortran?

Even worse, they sometimes rely on C++

Re: Overview of Python dependency management tools

#55
post #50

People always get up in arms about this, but as someone who has used Python as her daily driver for years it's really... never been this serious of an issue for me? I have used virtualenv/venv and pip to install dependencies for years and years, since I was a teen hacking around with Python. Packaging files with setup.py doesn't really seem that hard. I've published a few packages on pypi for my own personal use and…

As an individual that probably works just fine. In a team setup, it takes a lot of training and effort for everyone to consistently follow a manual pip/venv workflow, so it becomes valuable to minimize and standardize it.

Re: Overview of Python dependency management tools

#56
post #40

Tbh, this is one of the reasons why I moved away from Python to Ruby for my side projects.

Are bundler, rvm, and rbenv not as confusing?

IMO they are much cleaner—plus you only need one of rvm and rbenv anyway.

Re: Overview of Python dependency management tools

#57
post #18

Earlier quoted context omitted.

Hasn't it? pypi is really the de-facto package index, Pipenv/Poetry/Conda are all venv handlers (using the standard venv tools) + dependency graph, and using pip which is standard as well. I would call this a small set of solutions (3), and they are all sane (any will do, just pick one).

Inviting the question: why don't the core devs have a serious bakeoff and bring that functionality into the core distro?

poetry and pipenv are really just layers of abstraction of what is part of the Python core (pip, pypi, venv, wheels).

I don't even see what problems they solve, it seems like you end up with more problems using them.

Re: Overview of Python dependency management tools

#59
post #15

Every attempt to solve this problem in Python seems to eventually end up in a pretty terrible place. Pipenv got off to a great start but got slower and slower to the point that it was more painful to use than not. Poetry (which is still my preferred option) started off with something seemingly beautifully thought through, and very fast too. But after only a few version updates, it seems to be hitting the same problem…

Poetry is better than Pipenv by a mile. It solves almost all of the problems, and the remaining ones are already on the Poetry roadmap.

Re: Overview of Python dependency management tools

#60
post #51

For some of the problems that Node.js and JS at large have with a centralized package manager, I for one am very happy that it's not in the python situation. 100% of the packages I've tried to install in the last 3+ years are simply `npm install PKG`.

pip install works even on iPhone (for pure Python packages in Pythonista for iOS)

Do you mean pip3 install ? Also tried that, didn't work. Had to learn about Python versions, pip vs pip3 versions, pipenv, conda, how an old python package doesn't work with a modern Python package, etc.

All I was trying is to combine tensorflow lite with opencv IIRC. Just look at the installation instructions:

- https://www.tensorflow.org/install/pip

- https://www.tensorflow.org/lite/guide/python

- https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubun... vs https://stackoverflow.com/a/52880211/938236

Post reply on HN