Skip to content

Hard requirement of torch==1.2.0? #1257

@RomainSabathe

Description

@RomainSabathe

Hello, I'm revisiting the dependencies for my project and I haven't done that in a long time. I have been using torch 1.1.0 for quite a while; I am confident my code works with it. However it seems like torchvision now requires torch 1.2.0. Here's the output from poetry (pipenv gave a more verbose but essentially same output):


Updating dependencies
Resolving dependencies... (0.1s)
                                                                                                                     
[SolverProblemError]                                                                                  
Because torchvision (0.4.0) depends on torch (1.2.0)                                                               
 and no versions of torchvision match >0.4.0,<0.5.0, torchvision (>=0.4.0,<0.5.0) requires torch (1.2.0).          
So, because my_project depends on both torch (=1.1.0) and torchvision (^0.4.0), version solving failed.  

Is this intended or is this a 'bug'? Am I missing something? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions