articles/2024/python-poetry-vs-uv/ #15
Replies: 3 comments 6 replies
-
I appreciate the article, and I share your sentiment. I don't feel that uv is quite ready to replace poetry in my workflows yet. However, something caught my attention when you were suggesting that you can replace pyenv with uv. I've managed to do this, and there's a step that's very useful for getting poetry to use a python version installed via uv. I do not set a local version of python to create the Instead, I initialize the virtual environment that poetry uses with a python version installed by uv. You can do that with one command using: poetry env use $(uv python find 3.12) You can, of course change the python version to whichever you prefer as long as it's installed on your system and uv can detect it. After that, it's simply a matter of running Cheers! |
Beta Was this translation helpful? Give feedback.
-
Dependency groups should now be supported astral-sh/uv#5632 |
Beta Was this translation helpful? Give feedback.
-
pyenv isn't slow, it's building the Python distribution from source uv downloads a prebuilt binary, which means you might not get a working python on certain systems This might be a niche but uv won't work on some systems unless they're binary compatible with the python distributions available for download through uv - not sure if they build their own binaries or just download them from somewhere. |
Beta Was this translation helpful? Give feedback.
-
articles/2024/python-poetry-vs-uv/
Comparing two Python package managers: Poetry and new kid on the block uv.
https://www.loopwerk.io/articles/2024/python-poetry-vs-uv/
Beta Was this translation helpful? Give feedback.
All reactions