Python Dependency Management

Discussions center on recommending and comparing Python dependency management tools like Poetry, Pipenv, PDM, and pip-tools as superior alternatives to basic pip and requirements.txt for handling dependencies, lockfiles, and virtual environments.

📉 Falling 0.4x Programming Languages
2,620
Comments
16
Years Active
5
Top Authors
#6357
Topic ID

Activity Over Time

2011
4
2012
7
2013
24
2014
8
2015
11
2016
125
2017
64
2018
165
2019
226
2020
259
2021
382
2022
323
2023
338
2024
429
2025
252
2026
3

Keywords

e.g PDM NPM requirements.txt tox.ini FWIW AND requirements.in setup.py Pipfile.lock poetry pip pipenv dependencies venv txt requirements python install frozen

Sample Comments

h3ctic Jun 24, 2022 View on HN

Have you tried Poetry? (https://python-poetry.org)

rvdmei Jun 19, 2021 View on HN

I think poetry is rally gaining traction. Poetry solves some problems in an easy way that are cumbersome to replicate with pip (like guarding against supply chain attacks with lock files) and teams are starting to realize that basic use of pip and requirements.txt no longer is enough to manage dependencies. I am starting to more an more projects adopting poetry and the uptake seems to look like the uptake I saw in FastAPI. Side note: I tried using pipenv, but is was just too slow for resolving d

AlexCoventry May 17, 2019 View on HN

Try poetry. https://johnfraney.ca/posts/2019/03/06/pipenv-poetry-benchma...

gen220 Jan 15, 2023 View on HN

Respectfully, this reads like you're using outdated Python tools.Give Poetry [1] a shot, it has all the things you've listed here. Just as Node.js has come a long way in the last 5 years, Python has, too. Albeit, in a fashion that was much less centralized, arguably to Python's detriment.[1]: https://python-poetry.org/history/#100---2019-12-12, released 1.

gv83 Nov 14, 2023 View on HN

Poetry is not stable at all. pip-tools all the way, if not…pdm please

StavrosK Jun 14, 2020 View on HN

Pipenv is a bit deprecated, Poetry is the current recommendation (and what I use).

heavenlyblue Aug 13, 2019 View on HN

Even pip is pip-installable. What makes poetry any different?

dzonga Jun 1, 2020 View on HN

pipenv is terrible. poetry ain't there yet. seems author forgot to mention the problems with pipenv and poetry. virtualenv + pip will take you far. then to reproduce pipe to requirements.txt. poetry etc are still using pip under the hood

gjulianm May 10, 2022 View on HN

Most of the tools you mentioned appeared precisely because the basics with Python don't work that well. I had a project that started similarly, and in the end I had to use to pip-tools to actually separate top-level requirements and lockfiles for different "flavors" of the package (production and dev dependencies, for example). For new projects I would seriously consider poetry because it manages those two concepts directly. There's also the problem of changing requirement fi

digdugdirk Mar 27, 2023 View on HN

As someone not up to date on the Python world, how does your suggestion compare with something like Poetry?