TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

uv downloads overtake Poetry for Wagtail users

228 点作者 ThibWeb大约 2 个月前

30 条评论

heisig大约 2 个月前
I recently switched to uv, and I cannot praise it enough. With uv, the Python ecosystem finally feels mature and polished rather than like a collection of brittle hacks.<p>Kudos to the uv developers for creating such an amazing piece of software!
评论 #43386693 未加载
评论 #43386556 未加载
评论 #43392299 未加载
评论 #43386861 未加载
评论 #43386640 未加载
IshKebab大约 2 个月前
Not a surprise. I said it before and I&#x27;ll say it again, all the competing projects should just shut up shop for the good of Python. uv is <i>so</i> much better it&#x27;s like pushing penny farthings after the safety bike has been invented.
评论 #43386767 未加载
qwertox大约 2 个月前
I&#x27;ve read so much positive feedback about uv, that I&#x27;d really like to use it, but I&#x27;m unsure if it fits my needs.<p>I was heavily invested into virtualenv until I had to upgrade OS versions, which upgraded the Python versions and therefore broke the venvs.<p>I tried to solve this by using pyenv, but the need of recompiling Python on every patch wasn&#x27;t something which I would accept, specially in regards to boards like Raspberry Pis.<p>Then I tried miniconda which I initially only liked because of the precompiled Python binaries, and ultimately ended up using pyenv-managed miniforge so that I could run multiple &quot;instances&quot; of miniforge and therefore upgrade miniforge gradually.<p>Pyenv also has a plugin which allows to set suffixes to environments, which allows me to have multiple miniforges of the same version in different locations, like miniforge-home and miniforge-media, where -home has all files in the home dir and -media has all files on a mounted nvme, which then is where I put projects with huge dependencies like CUDA inside, not cluttering home, which is contained in a VM image.<p>It works really great, Jupyter and vscode can use them as kernels&#x2F;interpreters, and it is fully independent of the OS&#x27;s Python, so that OS upgrades (22.04 -&gt; 24.04) are no longer an issue.<p>But I&#x27;m reading about all these benefits of uv and wish I could use it, but somehow my setup seems to have tied my hands. I think I can&#x27;t use uv in my projects.<p>Any recommendations?<p>Edit: Many of my projects share the same environment, this is absolutely normal for me. I only create a new environment if I know that it will be so complex that it might break things in existing environments.
评论 #43387152 未加载
评论 #43387781 未加载
评论 #43387212 未加载
评论 #43387105 未加载
mihaic大约 2 个月前
I keep reading praise about uv, and every single time I never really understand what problems it addresses.<p>I&#x27;ve got a couple quite big Django projects for which I&#x27;ve used venv for years, and not once have I had any significant issues with it. Speed at times could have been better and I would have liked to have a full dependency list lock file, but that never caused me issues.<p>The only thing that comes to mind is those random fails to build of C&#x2F;C++ dependencies. Does uv address this? I&#x27;ve always seen people rave about other benefits.
评论 #43387475 未加载
评论 #43387157 未加载
评论 #43389241 未加载
brylie大约 2 个月前
As an aside, I can&#x27;t praise the Wagtail CMS highly enough. It sets a high bar for usability and accessibility of the auto-generated content management UI.<p>The developer experience is top notch with excellent documentation and many common concerns already handled by Wagtail or Django. A significant amount of Wagtail-specific code is declarative, essentially describing data model, relationships, and UI fields. The parts that you don&#x27;t need stay out of the way. It&#x27;s also agnostic of the type of front-end you want, with full and automatic support for headless mode with JavaScript client, using traditional Django templates SSR, or using a dynamic approach like HTMX.<p>Kudos to the Wagtail team!
评论 #43390344 未加载
ZuLuuuuuu大约 2 个月前
PyCharm also added uv support in their latest versions.<p>We recently switched to PDM in our company because it worked very well in our tests with different package&#x2F;dependency managers. Now I am rethinking if we should switch to uv while PDM usage is still not very wide-spread in our company. But PDM works very well, so I am not sure whether to keep using it.
评论 #43387009 未加载
评论 #43387497 未加载
BerislavLopac大约 2 个月前
As much as I am glad that it looks like one solution is being more and more accepted as the golden standard, I&#x27;m a little disappointed that PDM [0] -- which has been offering pretty much everything uv does for quite some time now -- has been completely overlooked. :(<p>[0] <a href="https:&#x2F;&#x2F;pdm-project.org" rel="nofollow">https:&#x2F;&#x2F;pdm-project.org</a>
评论 #43387477 未加载
TOMDM大约 2 个月前
For the uninitiated what is the benefit of UV over pip?<p>I&#x27;ve been working with pip for so long now that I barely notice it unless something goes very wrong.
评论 #43386807 未加载
评论 #43386885 未加载
评论 #43386772 未加载
评论 #43386731 未加载
评论 #43386844 未加载
评论 #43386783 未加载
评论 #43386874 未加载
评论 #43386686 未加载
__mharrison__大约 2 个月前
I just taught a week long course, Advanced Python for Data Scientists. The first day we discussed how to use uv. The feedback was &quot;this UV content is worth the price of the whole course&quot;.<p>Using uv is an easy sell to anyone who has worked with Python.<p>Great work Charlie and team.
bsdz大约 2 个月前
I feel for me, at least one nice thing about poetry over uv is, that if I have an issue or feature extension, I can just write my own plugin in pure Python. With uv, I&#x27;d need to learn Rust in addition to python&#x2F;c&#x2F;c++&#x2F;etc.<p>I wonder what it would take to get poetry on par with uv for those who are already switching to it? Poetry is definitely very slow downloading multiple versions of packages to determine dependencies (not sure how uv works around this?). Does uv have a better dependency checker algorithm?
评论 #43387558 未加载
评论 #43387100 未加载
评论 #43388388 未加载
评论 #43387367 未加载
Euphorbium大约 2 个月前
Uv should replace pip for all I care.
评论 #43386574 未加载
评论 #43386644 未加载
emblaegh大约 2 个月前
Man, I’m so jealous of insane praise that uv (and most other astral tools) gets. I don’t think ever seen anything so unanimously lauded around here.
评论 #43386730 未加载
评论 #43387013 未加载
评论 #43386884 未加载
评论 #43386694 未加载
评论 #43400848 未加载
zoobab大约 2 个月前
Plenty of packages still fail trying to spawn cmake, gcc and al.<p>UV does not solve all the hard problems.<p>Maybe switch to Pixi?
评论 #43386828 未加载
评论 #43386769 未加载
DHolzer大约 2 个月前
I recently checked out UV, and it&#x27;s impressively fast. However, one challenge that keeps coming up is handling anything related to CUDA and Torch.<p>Last week, I started developing directly in PyTorch containers using just pip and Docker. With GPU forwarding on Windows no longer being such a hassle, I&#x27;m really enjoying the setup. Still, I can’t shake the feeling that I might be overlooking something critical.<p>I’d love to hear what the HN crowd thinks about this type of env.
评论 #43387972 未加载
评论 #43387357 未加载
评论 #43387899 未加载
sireat大约 2 个月前
Coming from 10+ years of pip and also heavy venv user - uv seems pretty good.<p>First impressions of uv are quite nice, but how does one change Python versions once you have a project up?<p>I installed 3.13 with `uv python install python3.13`<p>I see bunch of Python versions now with `uv python list` (uv even found my old Anaconda 3.9 install from way back)<p>But how would I switch to 3.13?<p>LLM hallucinates with `uv venv use 3.13` but that command does not work.<p>I see from <a href="https:&#x2F;&#x2F;docs.astral.sh&#x2F;uv&#x2F;concepts&#x2F;projects&#x2F;config&#x2F;#python-version-requirement" rel="nofollow">https:&#x2F;&#x2F;docs.astral.sh&#x2F;uv&#x2F;concepts&#x2F;projects&#x2F;config&#x2F;#python-v...</a> that one can specify the version in pyproject.toml, but should not there be a command line to switch?
est大约 2 个月前
if an app or tool has a huge speed advantage, then I&#x27;d choose it no matter what.
评论 #43386527 未加载
globular-toast大约 2 个月前
Been using Python for 20 years and tried just about every tool related to packaging over the years. The only ones that worked well (IMO) were pip, pip-tools and venv. uv finally replaces all of them.<p>But being written in Rust means I&#x27;m having to also finally get somewhat proficient in Rust. Can any Rust developers comment on the quality of the uv codebase? I find it surprisingly procedural in style, with stuff like hundreds of `if dry_run` type things scattered throughout the codebase, for example. Is this normal Rust style?
brokegrammer大约 2 个月前
I switched from Poetry to uv last year. I like the speed and how it stores virtual envs in a .venv directory along with the project by default, whereas Poetry store it in a separate directory in your home directory by default, which makes it hard to work with tools that only discover virtual envs in the project root.<p>uv tool is also a great replacement for pipx.<p>I think it&#x27;s the way to go for Python dependency management in 2025.
aosaigh大约 2 个月前
I’m still using pip, what am I missing?
评论 #43386729 未加载
评论 #43386709 未加载
评论 #43386857 未加载
评论 #43386714 未加载
jimmydoe大约 2 个月前
I don&#x27;t understand the chart, does it say wagtail suddenly had a lot more uv traffic, but pip and poetry did not drop much? what does that mean? new batch of users emerges using uv? behavior of new uv version disrupted the chart?
zachwill大约 2 个月前
I’ve been primarily a Python developer since 2012 and recently switched to uv. The ability to manage dependencies, venv, and multiple Python versions makes it best-in-class now. It really is a fantastic tool.
yu3zhou4大约 2 个月前
Well deserved, I wish more cloud providers have it preinstalled
rob大约 2 个月前
uv, ruff.... Astral doesn&#x27;t miss. Excited to see what else they can bring to the Python world.<p>Had an issue running something on the latest Python version installed (3.13) but only needed to &#x27;downgrade&#x27; to 3.11 to run that particular script. Just a simple:<p>`uv run --python 3.11 --with openai-whisper transcribe.py`<p>And no need to mess with anything else.
评论 #43389409 未加载
bsdice大约 2 个月前
Biggest issue I have, is not solving all the dependency hell that is Python with its unversioned libraries, but supply chain attacks. Also regressions introduced by new versions all the time.<p>That is why for projects I resolve everything by hand, add all coarsely audited 3rd party libraries to .&#x2F;lib&#x2F;, and the main entry file then does this:<p>#!&#x2F;usr&#x2F;bin&#x2F;env -S &#x2F;bin&#x2F;sh -c &quot;_top_dir=\&quot;\$(dirname \&quot;\$(realpath -s \&quot;\$0\&quot;)\&quot;)\&quot;; cd \&quot;\$_top_dir\&quot;; exec \&quot;\$_top_dir&#x2F;python&#x2F;install&#x2F;bin&#x2F;python3\&quot; -W once::DeprecationWarning -X dev \&quot;\$0\&quot; \&quot;\$@\&quot;&quot;<p>import os<p>import sys<p># Insert .&#x2F;lib&#x2F; in front of search path<p>sys.path.insert(0, os.path.join(os.path.dirname(__file__), &quot;lib&quot;))<p>...<p>I like the excellent standalone CPython by indygreg, now under astral-sh&#x27;s github organization. Unpack as is into .&#x2F;python&#x2F; and done. Because Arch Linux would just roll forward to whatever version is latest, introducing new warnings every month or two and havoc on any new major version.<p>Project is fully portable, copy anywhere that has glibc, run.
toenail大约 2 个月前
path&#x2F;to&#x2F;venv&#x2F;bin&#x2F;uv pip install foo installs to the global venv, not path&#x2F;to&#x2F;venv. Sadly that&#x27;s a deal breaker for me, everything else looked great.
rubenvanwyk大约 2 个月前
May uv please keep on eating the python world. It&#x27;s so good.
user9999999999大约 2 个月前
is it me or is there a new python dependency manager every year?
评论 #43386749 未加载
评论 #43389480 未加载
评论 #43388321 未加载
technopol大约 2 个月前
uv sounds great! For those still using Python v2, how well does it work? pip used to be a pain when having to manage both Python v2 and v3 projects and tools.
评论 #43386728 未加载
评论 #43386869 未加载
Tewboo大约 2 个月前
It&#x27;s interesting to see UV downloads surpassing Poetry for Wagtail users. Could be a sign of growing preference for speed and simplicity.
评论 #43388269 未加载
karel-3d大约 2 个月前
I don&#x27;t understand a word of the headline, I guess I am not the intended audience.