-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Version solving fails with PyTorch +cu118 #7876
Comments
what makes you think this is a bug? the error mesage tells you why solving fails. |
The error should not occur. Installing the same package versions using |
nope, If |
Unfortunately |
For reference, here is the documentation from PyTorch where the above package install commands are derived from. The original command when run with pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 |
There are lots of duplicates for pytorch gpu stuff being difficult, afaik #6409 contains the most recent discussion (and is still an open issue), I'd try the things in there. Please close |
I believe this goes against PEP 440:
|
but it isn't, because |
I think I solved it. The proper way to install PyTorch cuda 11.8 on Poetry is with the following command:
The generated pyproject.toml now contains this: [tool.poetry.dependencies]
python = "^3.10"
torch = "2.0.0+cu118"
torchvision = "0.15.1+cu118"
torchaudio = "2.0.1+cu118" |
For some reason this one does not really work for me: |
In my .toml file, I added:
Then, I ran:
and now my .toml file has
It was such a pain to get this working! Previously, I was able to do:
which worked, but once I installed anything else, It would decide to "update" to 2.1.0 and remove the +118, which breaks cuda. |
This worked for me. Thanks!! |
add: or the correct url for you and it will work properly. |
This successfully solved my problem. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option) and have included the output below.Issue
I'm trying to add the
cu118
version of PyTorch to my dependencies with the cu118 version. I am following PyTorch's documentation under the CUDA 11.8 tab. The originalpip
command I am trying to follow is this:With Poetry, I first added PyTorch's cu118 source with:
poetry source add --default pytorch-index https://download.pytorch.org/whl/cu118
Then I try to install torch and related packages:
I get the following output:
The text was updated successfully, but these errors were encountered: