-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Possible bug: problems resolving pytorch (cuda). #1114
Comments
Hello @fralik, Thanks for the issue! Semantically With
|
A stacktrace for curious ones: user@home:/$ docker run --rm -it python:3.8-slim /bin/bash
root@f8514dadee50:/# pip install torch==1.4.0 --find-links https://download.pytorch.org/whl/torch_stable.html
>>> print(self)
<Specifier('==1.4.0')>
>>> print(prospective)
<Version('1.4.0+cpu')>
>>> print(prospective.public)
'1.4.0' |
PEP-440 about arbitrary |
Could be related also to #785, since scm dev versions have the same notation like |
Any news on this ? I have the same issue where I need to force the torch version with === and the generated .txt file only contains == which does not seem to enforce the proper version when using pip-sync Cheers |
Hello @IceTDrinker, Thanks for pinging. AFAIK, nobody works on the fix. Any help is highly appreciated and welcomed! |
A pointer as to where I should look ? 🙂 |
Probably, this could be a good start: Line 78 in f60fb00
Note hardcoded |
Looks like a good place to start indeed. I'll probably take a look this week-end thanks ! |
This may very well be PyTorch issue due to the way they distribute packages, but I will describe it here too.
The problem is that
pip-compile
doesn't stick to the way how package version is descried in.in
file.I am trying to install the default version of PyTorch (which comes compiled against CUDA 10.1).
Environment Versions
Steps to replicate
requirements.in
file:pip-compile -f https://download.pytorch.org/whl/torch_stable.html -o requirements.txt requirements.in
Expected result
Expected
requirements.txt
withtorch===1.4.0
(note triple=
).Actual result
Actual result it:
Note double
=
on torch and triple=
on torchvision.If one installs the packages via
pip-sync requirements.txt
, then:See that
cu92
version oftorch
is selected.However, if
requirements.txt
would containtorch===1.4.0
, then the results ofpip-sync
would be:The text was updated successfully, but these errors were encountered: