安装 按照官方指引,可以全局安装,也可以在具体的pyhon解释器用pip安装(换句话说可以和全局解释器共存,比如类似miniconda的版本管理器) https://github.com/astral-sh/uv 背景 最近在研究pytorch的gpu版本安装, 早期使用的时候只能使用 uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 没有和uv集成,导致每次安装都要手动指定inde……

阅读全文