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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Aider: Using Uv as an Installer

39 点作者 anotherpaulg2 个月前

8 条评论

jauntywundrkind2 个月前
The premise of an installer is pretty scary to me. Its so unclear to me what is going to happen to my system, or how I&#x27;d undo it. The Aider instructions&#x2F;installer was not something I felt like I could use.<p>There also weren&#x27;t docs for building&#x2F;running it from source, which is usually what if recent Debian packages aren&#x27;t available (they aren&#x27;t).<p>It took some tinkering (chaotically trying uv sync, uv venv commands, hacking pyproject.toml lightly after hitting some errors)… but eventually I built a wrapper script that runs:<p>uv run --project &#x2F;opt&#x2F;aider-git aider $*<p>There was definitely considerable angst over this process. I&#x27;ve rarely seen a project that left me so without guidance for how to run it myself. Wading into python projects often feels like it requires a long history of python packager&#x2F;build tools knowledge, and has brought me considerably suffering. I&#x27;ve muddled through many dozens of projects, but never a moment of illumination, a feeling that I grok the scene, understand the pieces and how the tool is working those components together. There&#x27;s lots of different tools &amp; epochs of python, and it feels like there&#x27;s no core truth, just many different semi-overlapping styles and techniques and you need context &amp; experience to figure out what to apply.<p>Where-as node_modules and package.json#scripts have felt so direct, isolated, self explanatory to me. Feeling super abandoned by python tooling is a feeling I&#x27;m used to. It was, at least, some comfort to have squeaked out a win once again though!
评论 #43276191 未加载
anotherpaulg2 个月前
Here’s my write up about the unique ways that aider uses uv as an installer.<p><a href="https:&#x2F;&#x2F;aider.chat&#x2F;2025&#x2F;01&#x2F;15&#x2F;uv.html" rel="nofollow">https:&#x2F;&#x2F;aider.chat&#x2F;2025&#x2F;01&#x2F;15&#x2F;uv.html</a><p>Offering these install methods dramatically reduced the number of GitHub issues from users with conflicted&#x2F;broken python environments.
FrenchyJiby2 个月前
I really want to love uv: It&#x27;s a hair away from being perfect, they just have to find a solution to the &quot;poetry version&quot; (bump) problem = <a href="https:&#x2F;&#x2F;github.com&#x2F;astral-sh&#x2F;uv&#x2F;issues&#x2F;6298">https:&#x2F;&#x2F;github.com&#x2F;astral-sh&#x2F;uv&#x2F;issues&#x2F;6298</a> (Work in progress, last I heard!).<p>Once we have a way to get package version bumps, I can finally leave poetry for the speed of uv!<p>Of particular interest to me, uv has &quot;workspaces&quot;, perfect for monorepo-like sub-packages: useful for plugin-based workflows where you may want to keep a few independent plugins in one repo.
vessenes2 个月前
Aider is the only python based program I’ve ever used that didn’t make versioning <i>my</i> problem. It runs, it upgrades, it asks nicely to upgrade, it sends me to the release notes.. It’s super smooth. I hadn’t really noticed installation at all, which is probably the nicest compliment you can pay to a python tool.
评论 #43276134 未加载
zitterbewegung2 个月前
I think this is an interesting way to package a python library but, they also have curl -LsSf <a href="https:&#x2F;&#x2F;aider.chat&#x2F;install.sh" rel="nofollow">https:&#x2F;&#x2F;aider.chat&#x2F;install.sh</a> | sh instead so I can see the tradeoff either install a whole new package manager or just trust that the shell script is legit.<p>I still use either pip -m venv venv or conda. I really tried to figure out uv but I just switch back to venv because it was too hard to use.<p>Also, when I tried Aider I really didn&#x27;t like this feature<p>* Aider automatically git commits changes with a sensible commit message.<p>since I rather actually do the commits (I&#x27;m guessing this can be turned off).
评论 #43276211 未加载
WiSaGaN2 个月前
I usually add &quot;upgrade&quot;: `uv tool install --upgrade --python python3.12 aider-chat`. So that it will upgrade the version to the latest if the current one is not already.
kelvie2 个月前
I also started using uv -- it is fantastic in so many ways, and &quot;uv tool&quot; is certainly one of them.<p>For this particular use case, you can use `uvx`, which is a shorthand for `uv tool run`, which is a <i>great</i> alternative for installing random python tools in isolation.<p>Such as this one. Or for example, python-kasa (for controlling TP Kasa plugs) or esphome (the build script)<p>Prior to doing this, it was either manage virtualenvs (one for each tool), or rely on a mess of Arch packages.
yig2 个月前
Why is this necessary? I just alias aider to:<p>uv tool run --python 3.11 --from aider-chat@latest aider
评论 #43278908 未加载
评论 #43276539 未加载