uv安装配置

手动下载安装包(适合不想用脚本的同学)

访问下载地址:uv Releases
https://github.com/astral-sh/uv/releases

找到你的平台对应版本.

  1. Windows 64 位一般下载这个:
    uv-x86_64-pc-windows-msvc.zip x64 Windows

解压后会得到一个 uv.exe 文件。

uv.exe 放入某个路径,并把该路径加入系统环境变量 Path

Linux系统环境变量配置和mac的类似,下面我的配置是mac的配置:

bash 复制代码
#uv
export UV_HOME=/Users/lambert/apps/uv-aarch64-apple-darwin/
export PATH=$PATH:$UV_HOME:.
export UV_PYTHON_INSTALL_MIRROR=https://github-proxy.lixxing.top/https://github.com/astral-sh/python-build-standalone/releases/download
export PATH=/Users/lambert/.local/bin:$PATH
export UV_CONFIG_FILE=/Users/lambert/.local/uv.toml
bash 复制代码
# 初始化已有项目
uv init --python 3.12
uv venv --python 3.12
source .venv/bin/activate
uv sync

#安装依赖
 uv pip install -r requirements.txt

参考网址 https://www.cnblogs.com/haima/p/18928947

相关推荐
wj3055853789 小时前
课程 1:WSL + uv + ComfyUI 环境选择说明
python·wsl·cuda·uv·comfyui
wj3055853789 小时前
课程 2:使用 uv 安装 ComfyUI
python·uv·comfyui
deepin_sir10 小时前
01 Chroma_环境与uv极速起手
uv
EntyIU10 小时前
uv操作指南
python·uv
:-)1 天前
uv使用教程
uv
猿儿本无心1 天前
快速搭建Python项目(Vscode+uv+FastAPI)
vscode·python·uv
go不是csgo2 天前
两个Redis数据结构搞定签到和UV统计:Bitmap与HyperLogLog实战
数据结构·redis·uv
EntyIU2 天前
uv工程化项目指南
前端·python·uv
schinber2 天前
uv源怎么配置
python·uv
codingxb456 天前
【Python】uv基础使用
python·uv