Installing nightly version picks up latest release
See original GitHub issue🐛 Bug
I am trying to install latest torchvision nightly version but pip picks up latest release. The reason is that latest nightly packages have the same version as the latest release. You would expect the nightlies to have a higher major / minor / patch.
To Reproduce
Steps to reproduce the behavior:
With pip install --pre torchvision -f https://download.pytorch.org/whl/nightly/cu111/torch_nightly.html
I would expect the latest nightly version to be installed. Pip however picks up torchvision==0.9.0
from https://pypi.org/simple/torchvision/, which is a release version. Latest nightly package in that nightly url is torchvision-0.9.0.dev20210324%2Bcu111-cp38-cp38-linux_x86_64.whl
, which is semantically before the release, hence it is not being picked up.
This can be worked around by adding --no-index
to pip
. However, I think the versioning is not correct.
Expected behavior
I always get a nightly version.
Environment
- OS: Linux (Ubuntu)
- Python: 3.8
- Pip: 20.0.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
@EnricoMi I believe we are not providing binaries for c110 nor cu112, so this would be expected, but I’ll let @seemethere confirm
I can confirm this now picks up version
0.10.0.dev20210325+cu111
: