Skip to content

pytorch and poetry #4231

@yonimedhub

Description

@yonimedhub
  • [X ] I am on the latest Poetry version.
  • [X ] I have searched the issues of this repo and believe that this is not a duplicate.
  • [ X] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: docker on linux with cuda
  • Poetry version: 1.1.7
  • Link of a Gist with the contents of your pyproject.toml file: <below

Issue

pytorch is now pep503 compliant (pytorch/pytorch#25639 (comment)) but I still can't add torch and torchvision.
I've tried using this:

torch = {url = "https://download.pytorch.org/whl/cu111/torch-1.9.0%2Bcu111-cp38-cp38-linux_x86_64.whl"}
torchvision = {url = "https://download.pytorch.org/whl/cu111/torchvision-0.10.0%2Bcu111-cp38-cp38-linux_x86_64.whl"}

but got this:

Updating dependencies
Resolving dependencies... (326.0s)

  SolverProblemError

  Because torchvision (0.10.0+cu111) depends on torch (1.9.0)
   and  depends on torch (1.9.0+cu111), torchvision is forbidden.
  So, because  depends on torchvision (0.10.0+cu111), version solving failed.

and if I try using

 [[tool.poetry.source]]
 name = "torch_rep"
 url = "https://download.pytorch.org/whl/cu111/"

I end up disabling the pypi and can't download anything else...

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions