New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install forces install of old torch 1.3.0 #338
Comments
Thanks for pointing this out. I can replicate. |
Is it technically possible to make it so that torchaudio has greater-or-equals dependency on torch version? so that this doesn't bite again |
cc @ezyang |
The requirements.txt does indeed have |
There is also maybe a potential problem with libtorch / binary compat if torchaudio is installed from a binary package. In that case exact major version match can be important, but then this should be clearly explained in README (e.g. I had to do |
For reference:
|
@vincentqb did you do a point release of torchaudio when torch 1.3.1 was released? This needs to be done. |
Indeed, the last point release for torchaudio was 0.3.1 and was done when pytorch 1.3.0 was released, not 1.3.1. |
I am still having this issue. Brand new install on a laptop of ubuntu 19; anaconda, pytorch-gpu installed without issue; gpu is nvidia rtx2080 and works without issue. Attempt to conda install -c pytorch torchaudio The following packages will be DOWNGRADED: pytorch-gpu 1.3.1-0 --> 1.2.0-0 Where do I install from without downgrading my prior torch installation? |
A workaround is to install from sources with —no-deps... |
Closed by #354. Please feel free to re-open if the problem persists. |
For understanding: if a new version of PyTorch is released and torchaudio isn't released for some time, will a similar issue pop up? (i.e. when PyTorch 1.5.0 is released, will installation of torchaudio downgrade it to 1.4.0?) In other words, does PyTorch Audio require a specific version of PyTorch or just greater-equals? Asking because that PR is named "0.3.2 point release", so it's not clear if the kind of dependency was adjusted or not |
0.4.0 release mentions:
But the PR #312 has nothing to do with change of dependency way / version |
Yes, when a new version of PyTorch is released, point releases of the libraries (torchaudio, torchtext, torchvision) need to be made to point to the new version. |
#312 is different. There was a change in syntax in pytorch that we needed to propagate to remove warnings. It was merged in a version that would come to depend on the corresponding pytorch version. |
Ah, I see! Thanks for clarification! |
I may not understand what "point to the new version" means. If a 0.5.0 release of torchaudio comes some time after torch 1.5.0 is released, will a similar issue pop up in the meanwhile? If yes, this is quite unfortunate, since sattelite projects such as torchvision, torchaudio have much maintainer teams and releases may lag with some time (like it was the case in this issue). Is there a way to specify a dependency in a way that would not cause the downgrade? (at least if a minor version changed only) cc @ezyang |
If we are doing our job as release maintainers right, torchaudio/torchvision should have releases every time we do a main release of PyTorch. As for not causing a downgrade, I'm not sure. I feel like you have to explicitly specify the version desired for PyTorch, and then the depsolver will tell you unsat (or pick an older version of the domain library) |
@ezyang A new version hasn’t always been released unfortunately immediately. I think this situation requires some testing. I read somewhere that pip behavior changed in 9th version - maybe that’s the reason. At very least this should be clear in README and maybe default installation - downgrade with default installation command is a very nasty user experience |
I have torch 1.3.1 installed
pip install torchaudio -f https://download.pytorch.org/whl/torch_stable.html
forces collecting of torch 1.3.0 even though a newer version is installedThis is an official installation way from README. If pip is mis-behaving, maybe a conda install should be recommended too
The text was updated successfully, but these errors were encountered: