ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Torch version chaos

Open JoBilert opened this issue 2 years ago • 3 comments

I tried following the NVIDIA installation guide of your ReadMe, but whenever i try to install xformers i get the following:

torchvision 0.15.0+cu117 requires torch==2.0.0, but you have torch 1.13.1 which is incompatible.
torchaudio 2.0.0+cu117 requires torch==2.0.0, but you have torch 1.13.1 which is incompatible.

can you help me resolve this problem?

JoBilert avatar Mar 14 '23 16:03 JoBilert

try uninstalling torchvision and torchaudio with: pip uninstall torchvision torchaudio

comfyanonymous avatar Mar 14 '23 19:03 comfyanonymous

I had the same problem, got it to work by first uninstalling torch, torchvision and torchaudio, then installing with torch==1.13.1+cu117:

pip uninstall torch torchvision torchaudio
pip install torch==1.13.1+cu117 torchvision torchaudio -f https://download.pytorch.org/whl/torch_stable.html --extra-index-url https://download.pytorch.org/whl/cu118

rakete avatar Mar 15 '23 19:03 rakete

Closing as problem seems to be resolved.

robinjhuang avatar Jul 03 '24 19:07 robinjhuang