UV 无法安装指定 CUDA 版本的 pytorch - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Leon6868
V2EX    Python

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

  •  
  •   Leon6868 364 天前 2109 次点击
    这是一个创建于 364 天前的主题,其中的信息可能已经有所发展或是发生改变。

    命令:

    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, <2.3.0+ DEBUG Adding direct dependency: torchvision>=0.18.0, <0.18.0+ DEBUG Adding direct dependency: torchaudio>=2.3.0, <2.3.0+ DEBUG No cache entry for: https://download.pytorch.org/whl/cu121/torch/ DEBUG No cache entry for: https://download.pytorch.org/whl/cu121/torchvision/ DEBUG No cache entry for: https://download.pytorch.org/whl/cu121/torchaudio/ DEBUG Searching for a compatible version of torch (>=2.3.0, <2.3.0+) DEBUG Searching for a compatible version of torch (>=2.3.0, <2.3.0+cu121 | >2.3.0+cu121, <2.3.0+) DEBUG No compatible version found for: torch × No solution found when resolving dependencies: ─ Because only the following versions of torch are available: torch<2.3.0 torch>=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` 
    7 条回复    2024-12-05 11:37:12 +08:00
    yuuluu
        1
    yuuluu  
       364 天前
    换成 python 3.12
    tolbkni
        2
    tolbkni  
       364 天前
    你指定的 torch 2.3.0 版本的 wheel 包只兼容 Python 3.10/3.11/3.12

    iorilu
        3
    iorilu  
       364 天前   1
    玩 python 永远不要用最新得版本

    因为很多大型库跟不上更新得

    保守点退回 1-2 个版本, 比如现在我一般用 3.11
    akin520
        4
    akin520  
       364 天前
    我用 3.10 3.11
    hefish
        5
    hefish  
       364 天前
    3.13 太新了吧。。。
    llsquaer
        6
    llsquaer  
       363 天前
    In my experience, use dual instead of single, but not the latest. Currently developing 3.10, 3.8 作为考古 win7 专用。

    不知道为啥,输入框自动翻译成英文了。是那个插脚搞的鬼。
    fghzpqm
        7
    fghzpqm  
       362 天前
    > At time of writing, PyTorch does not yet publish wheels for Python 3.13; as such projects with requires-python = ">=3.13" may fail to resolve. See the compatibility matrix.

    https://docs.astral.sh/uv/guides/integration/pytorch/#installing-pytorch
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1124 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 17:40 PVG 01:40LAX 09:40 JFK 12:40
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86