UV 无法安装指定 CUDA 版本的 pytorch

查看 3|回复 0
作者:Leon6868   
命令:
uv pip install --verbose torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121
终端内容:
DEBUG uv 0.5.2 (195f4b634 2024-11-14)
DEBUG Searching for default Python interpreter in virtual environments
DEBUG Found `cpython-3.13.0-windows-x86_64-none` at `D:\xxx\.venv\Scripts\python.exe` (active virtual environment)     
DEBUG Using Python 3.13.0 environment at .venv
DEBUG Acquired lock for `.venv`
DEBUG At least one requirement is not satisfied: torchaudio==2.3.0
DEBUG Using request timeout of 30s
DEBUG Solving with installed Python version: 3.13.0
DEBUG Solving with target Python version: >=3.13.0
DEBUG Adding direct dependency: torch>=2.3.0, =0.18.0, =2.3.0, =2.3.0, =2.3.0, 2.3.0+cu121, =2.3.0+cu121
      and torch==2.3.0+cu121 has no wheels with a matching Python ABI tag, we can conclude that torch==2.3.0 cannot be used.
      And because you require torch==2.3.0, we can conclude that your requirements are unsatisfiable.
DEBUG Released lock at `.venv\.lock`
您需要登录后才可以回帖 登录 | 立即注册

返回顶部