python3之uv安装

uv简介

一个用 Rust 编写的极速 Python 包和项目管理工具。

  • 优点

🚀 一个工具替代 pip、pip-tools、pipx、poetry、pyenv、twine、virtualenv 等
⚡️ 比 pip 快 10-100 倍
🗂️ 提供全面的项目管理功能,包含通用锁文件
❇️ 运行脚本,支持内联依赖元数据
🐍 安装和管理 Python 版本
🛠️ 运行和安装 以 Python 包形式发布的工具
🔩 包含 pip 兼容接口,在熟悉 CLI 的同时获得性能提升
🏢 支持 Cargo 风格的工作区用于可扩展项目
💾 磁盘空间高效,通过全局缓存实现依赖去重
⏬ 无需 Rust 或 Python 即可通过 curl 或 pip 安装
🖥️ 支持 macOS、Linux 和 Windows

安装

  • pip形式
pip install uv
  • powershell形式

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

  • bash形式

curl -LsSf https://astral.sh/uv/install.sh | sh

posted @ 2026-09-06 19:56  leaguecn  阅读(8)  评论(0)    收藏  举报

闲来无事唱两句