UV:一体化Python开发工具
设计理念:All-in-One的现代Python开发解决方案
核心功能:Python版本管理 + 包管理 + 虚拟环境管理 + 项目配置
目标用户:追求高效、简洁开发体验的现代Python开发者
技术实现:Rust编写,无Python依赖,跨平台原生支持
> powershell -ExecutionPolicy ByPass -c {$env:UV_INSTALL_DIR = "D:\MyAPP\UV";irm https://astral.sh/uv/install.ps1 | iex}Downloading uv 0.9.28 (x86_64-pc-windows-msvc)Installing to D:\MyAPP\UV uv.exe uvx.exe uvw.exeeverything's installed!To add D:\MyAPP\UV to your PATH, either restart your shell or run: set Path=D:\MyAPP\UV;%Path% (cmd) $env:Path = "D:\MyAPP\UV;$env:Path" (powershell)
可上面的成功情况感觉需要撞大运,基本上都是如下错误:> powershell -ExecutionPolicy ByPass -c {$env:UV_INSTALL_DIR = "D:\MyAPP\UV";irm https://astral.sh/uv/install.ps1 | iex}powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"irm : 无法连接到远程服务器所在位置 行:1 字符: 1+ irm https://astral.sh/uv/install.ps1 | iex+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod],WebException+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand