Skip to content

Commit 2e52aa6

Browse files
authored
Fix grammar and formatting in UV package management article
Corrected grammar and formatting issues in the UV package management tool article, including section headings and text clarity.
1 parent 98f767d commit 2e52aa6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

source/_posts/现代的包管理工具uv.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ highlight_shrink:
2222
aside:
2323
---
2424

25-
在 Python 开发中,使用好的包和项目管理工具,相当于打好基础,相关件将相宜実。这年头,来自 Astral (即 Ruff 和 Black 的开发者) 的新工具「UV」,一上线就引发了广泛关注,以 Rust 高性能实现,目标是替代 pip,virtualenv,poetry 等组合,成为 Python 最新一代的包管理栏杆。
25+
在 Python 开发中,使用好的包和项目管理工具,相当于打好基础。这年头,来自 Astral (即 Ruff 和 Black 的开发者) 的新工具UV,一上线就引发了广泛关注,以 Rust 高性能实现,目标是替代 pip,virtualenv,poetry 等组合,成为 Python 最新一代的包管理栏杆。
2626

2727
## 为什么要使用uv
2828

@@ -146,7 +146,7 @@ index 可以指定镜像源(如清华 PyPI)
146146

147147
同时 UV 会生成 uv.lock,锁定给定环境下的确定包版本和校验信息,保证可重复性。
148148

149-
常见问题和解决方法
149+
## 常见问题和解决方法
150150

151151
1. 使用 --system-site-packages 后包无效
152152

@@ -177,7 +177,7 @@ uv config set index-url https://pypi.tuna.tsinghua.edu.cn/simple
177177

178178
uv lock
179179

180-
在 UV 中管理 PyTorch
180+
## 在 UV 中管理 PyTorch
181181

182182
1. 基础安装:
183183

@@ -216,14 +216,14 @@ print(torch.cuda.get_device_name(0))
216216

217217
uv run python check_cuda.py
218218

219-
常见问题:
219+
## 常见问题:
220220

221221
如果直接用 uv pip install 安装,pyproject.toml 不会更新,建议终究使用 uv add
222222

223223
如遇到网络慢,同样可配置用国内镜像源
224224

225-
总结
225+
# 总结
226226

227227
UV 是一款超高性能、全配套、很合于环境及大型项目管理的新世代工具,特别适合对环境素质有严格要求的开发者和研究人员。
228228

229-
无论是日常开发,进行快速指定版本部署,还是复杂的模型训练,UV 都完全能上场,是很值得推荐的 Python 包管理方案。
229+
无论是日常开发,进行快速指定版本部署,还是复杂的模型训练,UV 都完全能上场,是很值得推荐的 Python 包管理方案。

0 commit comments

Comments
 (0)