What python package manager should one be using? #python
Poll
Voting ended 9 November at 22:26.
What python package manager should one be using? #python Anonymous poll
Poll
pdm
1
2.9%
poetry
5
14.7%
uv
13
38.2%
pip and venv (only standard library)
34 people voted. 15
44.1%
Voting ended 9 November at 22:26. 18 comments
@r343l I feel like "write my own from scratch" should've been the first poll option? π @Andres4NY Lol. Relatedly, the reason I am even noticing this because I have a repo that builds a docker image against debian testing (trixie) which just got python 3.12.7 which changed a signature on an internal function on an argparse class. Which pdm overrides with the old signature. I wonder how painful just using pipenv would be? SIGH. @r343l mostly I just use pip and venv for everything (that isn't already packaged by Debian), but I'm also not trying to ship anything across systems; I only ever find myself doing that for game that my kids use or something @r343l this might be a useful read: https://micro.webology.dev/2024/11/03/uv-does-everything.html @jacob Strongly tempted to switch to uv because it seems the fastest path to unblocking my docker build with minimal other changes. @r343l Iβd really encourage it, itβs really significantly better that everything out there, with almost no downsides. @jacob the only downsides I can see (just off that blog) are: - no cli run scripts from pyproject.toml. easily dealt with but mildly annoying but pdm has a blocking issue and my main workaround is to use pyenv in my docker image (for running tests with reliable/fixed R and other binary deps) instead of system python at which point I have to change a lot anyway. @r343l *should* makes this way too loaded for me. We went with poetry 4 years ago because pip didn't support lock files. But PDM and pipenv do now. Another team here uses PDM and likes it a lot. One of the companies we have outsourced dev to dislikes poetry because "it puts files in the wrong place". My default is poetry, but it's not a strongly held preference. @kingrat Yeah when poetry came out I like it a lot. Our team has moved over to pdm mostly but just hit a blocking bug (see other replies) that the only way to workaround is rip out pdm or downgrade python to 3.12.6 (from 3.12.7). @r343l As someone new-ish to Python, use what works best for you. At work we started out using pip and venv, but the other teams used Conda, which basically wraps pip and does a few other things, so thatβs what we use. It works, itβs Good Enough. But if something else works better for you use that. @wiredog Part of the challenge is they all are Good Enough until they aren't (in this case ran into a blocking issue with pdm that now has me seriously considerng uv). @r343l I thought my vote for pdm would be in the minority, but I expected poetry to be out ahead. |
Oh god. Searching for what's out there and realizing I needed like a 12 option poll to even cover popular ones. Β―\_(γ)_/Β―