vision: torchvision CPU nightly wheels are stored in the wrong index

The nightlies are in https://download.pytorch.org/whl/nightly/cpu/torchvision/torchvision rather than https://download.pytorch.org/whl/nightly/cpu/torchvision/.

Installing with

pip install --pre torchvision --extra-index-url https://download.pytorch.org/whl/nightly/cpu/

will pull the stable wheel from PyPI.

cc @malfet @seemethere

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 16 (6 by maintainers)

Most upvoted comments

This issue is still popping up from time to time. We tried working around it using @pmeier’s suggestion to change:

pip install --pre torch torchtext torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/torch_nightly.html       

to:

pip install --pre torch torchtext torchvision torchaudio -f https://download.pytorch.org/whl/nightly/torch_nightly.html

However, this results in installing a ROCM enabled version of torch that fails at runtime and is incompatible with some of our other dependencies.

torch                     1.13.0.dev20220614+rocm5.0
torchaudio                0.13.0.dev20220614+rocm5.1.1
torchtext                 0.14.0.dev20220614
torchvision               0.14.0.dev20220614+rocm5.0

Thanks for the workaround @pmeier.

@malfet, thanks for looking into this, though I am still unable to use --extra-index-url at this time.

Fixed it by deleting spurious /whl/cpu/torchvision/ packages, but I’m still not sure why it caused this weird nesting problem

Is this related to https://github.com/pytorch/vision/issues/6099?

Nope. The cause of #6099 is a wrong installation command. Your command is fine, but our index is broken.

In the mean time, you can also install with

pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/torch_nightly.html

This is fine for your use case, but be aware that you can only install PyTorch wheels with this, whereas the --extra-index-url can also pull from PyPI if you require anything else.