<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Uvx on 每日拍拍</title>
    <link>https://dailypypy.org/tags/uvx/</link>
    <description>Recent content in Uvx on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Wed, 28 Oct 2026 10:26:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/uvx/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>uv Tool 生命週期：uvx、持久安裝、版本固定與 PATH 診斷</title>
      <link>https://dailypypy.org/learn/python-uv-tool-lifecycle/</link>
      <pubDate>Wed, 28 Oct 2026 10:26:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/python-uv-tool-lifecycle/</guid>
      <description>&lt;!---
1440x768
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, eye-level wide cowboy shot, standing with hands clasped behind her back and shoulders relaxed, playful head tilt and bright closed-mouth grin, looking at viewer, pastel apricot background, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
dedup note: Specific lifecycle follow-up to ../python-uv/, which only briefly introduces uvx. This article owns disposable versus persistent CLI environments, installed-tool reuse, explicit package selection, PATH provenance/shadowing, isolated tool/bin/cache testing and scoped upgrade/rollback/uninstall. ../python-uv-python-management/ owns interpreter install/find/pin; here interpreter checks only prove tool/project separation. No workspace, scripts, dependency-group, resolver or offline-cache walkthrough is repeated.
---&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一. 前言：裝好了，為什麼還是舊版本？ 
    &lt;div id=&#34;一-前言裝好了為什麼還是舊版本&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80-%e5%89%8d%e8%a8%80%e8%a3%9d%e5%a5%bd%e4%ba%86%e7%82%ba%e4%bb%80%e9%ba%bc%e9%82%84%e6%98%af%e8%88%8a%e7%89%88%e6%9c%ac&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;拍拍君曾經看過一種很迷惑的除錯現場：
工具管理器說「安裝成功」，終端機卻繼續印舊版本。
有人於是再裝一次、再加一次 &lt;code&gt;--force&lt;/code&gt;，最後連自己用了哪一份都說不清。&lt;/p&gt;
&lt;p&gt;問題往往不在安裝，而在兩條不同的選擇路徑：
&lt;strong&gt;uv 決定工具環境，shell 決定裸指令會跑哪個檔案。&lt;/strong&gt;
它們不是同一個問題，也不一定得到同一個答案。&lt;/p&gt;
&lt;p&gt;這篇不重講 &lt;a href=&#34;../python-uv/&#34;&gt;uv 入門&lt;/a&gt; 的專案建立流程。
我們只追蹤一個 CLI：從臨時執行、持久安裝，到升級、回退與移除。
例子使用 Ruff，但不討論 lint 規則；想學規則請看 &lt;a href=&#34;../python-ruff/&#34;&gt;Ruff 教學&lt;/a&gt;。&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/python-uv-tool-lifecycle/featured.png" />
    </item>
    
  </channel>
</rss>
