Skip to content

Issue installing pytorch 2.7 and torchvision together #119

@anwai98

Description

@anwai98

Comment:

Hi team,

I am having trouble installing pytorch=2.7 and torchvision together in the same environment (CPU / GPU compatible pytorch regardless)

Steps for my installation:

  • micromamba create -n test-neu -c conda-forge python=3.11 pytorch=2.7 torchvision

The installation above leads to a long error trace:

error trace
anwai@anwai:~$ micromamba create -n test-neu -c conda-forge python=3.11 pytorch=2.7 torchvision
conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache
nodefaults/linux-64                                125.0 B @ 334.0 B/s  0.3s
nodefaults/noarch                                  116.0 B @ 215.0 B/s  0.5s

error    libmamba Could not solve for environment specs
    The following packages are incompatible
    ├─ python =3.11 * is installable and it requires
    │  └─ python_abi =3.11 *_cp311, which can be installed;
    ├─ pytorch =2.7 * is installable with the potential options
    │  ├─ pytorch [2.0.0|2.1.0|...|2.7.0] would require
    │  │  └─ python_abi =3.10 *_cp310 but there are no viable options
    │  │     ├─ python_abi 3.10 would require
    │  │     │  └─ python =3.10 *_cpython, which conflicts with any installable versions previously reported;
    │  │     └─ python_abi 3.10 conflicts with any installable versions previously reported;
    │  ├─ pytorch [2.0.0|2.1.0|...|2.7.0] would require
    │  │  └─ python_abi =3.9 *_cp39 but there are no viable options
    │  │     ├─ python_abi 3.9 would require
    │  │     │  └─ python =3.9 *_cpython, which conflicts with any installable versions previously reported;
    │  │     └─ python_abi 3.9 conflicts with any installable versions previously reported;
    │  ├─ pytorch [2.0.0|2.1.0|...|2.7.0] would require
    │  │  └─ __cuda =* *, which is missing on the system;
    │  ├─ pytorch [2.1.0|2.1.2|...|2.7.0] would require
    │  │  └─ python_abi =3.12 *_cp312, which requires
    │  │     └─ python =3.12 *_cpython, which conflicts with any installable versions previously reported;
    │  ├─ pytorch [2.4.1|2.5.1|2.6.0|2.7.0] would require
    │  │  └─ python_abi =3.13 *_cp313 but there are no viable options
    │  │     ├─ python_abi 3.13 would require
    │  │     │  └─ python =3.13 *_cpython, which conflicts with any installable versions previously reported;
    │  │     └─ python_abi 3.13 would require
    │  │        └─ python =3.13 *_cp313, which conflicts with any installable versions previously reported;
    │  └─ pytorch 2.7.0, which can be installed;
    └─ torchvision =* * is not installable because there are no viable options
       ├─ torchvision [0.12.0|0.13.0|...|0.21.0] would require
       │  └─ python_abi =3.10 *_cp310 but there are no viable options
       │     ├─ python_abi 3.10, which cannot be installed (as previously explained);
       │     └─ python_abi 3.10 conflicts with any installable versions previously reported;
       ├─ torchvision [0.10.0|0.10.1|...|0.9.1] would require
       │  └─ python_abi =3.8 *_cp38 but there are no viable options
       │     ├─ python_abi 3.8 would require
       │     │  └─ python =3.8 *_cpython, which conflicts with any installable versions previously reported;
       │     └─ python_abi 3.8 conflicts with any installable versions previously reported;
       ├─ torchvision [0.10.0|0.10.1|...|0.9.1] would require
       │  └─ python_abi =3.9 *_cp39 but there are no viable options
       │     ├─ python_abi 3.9, which cannot be installed (as previously explained);
       │     └─ python_abi 3.9 conflicts with any installable versions previously reported;
       ├─ torchvision [0.15.1|0.15.2] would require
       │  └─ pytorch >=2.0.0,<2.1.0a0 * but there are no viable options
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch 2.0.0 conflicts with any installable versions previously reported;
       │     ├─ pytorch [2.0.0|2.1.0|...|2.4.0] would require
       │     │  └─ python_abi =3.8 *_cp38 but there are no viable options
       │     │     ├─ python_abi 3.8, which cannot be installed (as previously explained);
       │     │     └─ python_abi 3.8 conflicts with any installable versions previously reported;
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     └─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       ├─ torchvision [0.15.1|0.15.2|...|0.21.0] would require
       │  └─ pytorch [=* cuda126*|=2.0 cuda112*|...|==2.1 cuda120*], which cannot be installed (as previously explained);
       ├─ torchvision 0.16.1 would require
       │  └─ pytorch >=2.1.0,<2.2.0a0 * but there are no viable options
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.4.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch 2.1.0 conflicts with any installable versions previously reported;
       │     ├─ pytorch [2.1.0|2.1.2|...|2.7.0], which cannot be installed (as previously explained);
       │     └─ pytorch 2.1.2 conflicts with any installable versions previously reported;
       ├─ torchvision 0.16.1 would require
       │  └─ pytorch >=2.1.2,<2.2.0a0 * but there are no viable options
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.4.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.1.0|2.1.2|...|2.7.0], which cannot be installed (as previously explained);
       │     └─ pytorch 2.1.2 conflicts with any installable versions previously reported;
       ├─ torchvision [0.16.1|0.18.0|...|0.21.0] would require
       │  └─ python_abi =3.12 *_cp312, which cannot be installed (as previously explained);
       ├─ torchvision [0.18.0|0.18.1] would require
       │  └─ pytorch =2.3 cpu* but there are no viable options
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.4.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.1.0|2.1.2|...|2.7.0], which cannot be installed (as previously explained);
       │     └─ pytorch [2.3.0|2.3.1] conflicts with any installable versions previously reported;
       ├─ torchvision [0.19.0|0.19.1] would require
       │  └─ pytorch =2.4 cpu* but there are no viable options
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.4.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.1.0|2.1.2|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch 2.4.0 conflicts with any installable versions previously reported;
       │     ├─ pytorch 2.4.1 conflicts with any installable versions previously reported;
       │     └─ pytorch [2.4.1|2.5.1|2.6.0|2.7.0], which cannot be installed (as previously explained);
       ├─ torchvision 0.19.1 would require
       │  └─ pytorch >=2.4.1,<2.5.0a0 * but there are no viable options
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.1.0|2.1.2|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch 2.4.1 conflicts with any installable versions previously reported;
       │     └─ pytorch [2.4.1|2.5.1|2.6.0|2.7.0], which cannot be installed (as previously explained);
       ├─ torchvision 0.20.1 would require
       │  └─ pytorch >=2.5.1,<2.6.0a0 * but there are no viable options
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.1.0|2.1.2|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.4.1|2.5.1|2.6.0|2.7.0], which cannot be installed (as previously explained);
       │     └─ pytorch 2.5.1 conflicts with any installable versions previously reported;
       ├─ torchvision [0.20.1|0.21.0] would require
       │  └─ python_abi =3.13 *_cp313, which cannot be installed (as previously explained);
       ├─ torchvision 0.21.0 would require
       │  └─ pytorch >=2.6.0,<2.7.0a0 * but there are no viable options
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.0.0|2.1.0|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.1.0|2.1.2|...|2.7.0], which cannot be installed (as previously explained);
       │     ├─ pytorch [2.4.1|2.5.1|2.6.0|2.7.0], which cannot be installed (as previously explained);
       │     └─ pytorch 2.6.0 conflicts with any installable versions previously reported;
       ├─ torchvision [0.10.0|0.10.1|0.8.2|0.9.0|0.9.1] would require
       │  └─ python_abi =3.6 *_cp36m, which conflicts with any installable versions previously reported;
       └─ torchvision [0.10.0|0.10.1|...|0.9.1] would require
          └─ python >=3.7,<3.8.0a0 *, which conflicts with any installable versions previously reported.
critical libmamba Could not solve for environment specs

Can someone clarify this please?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions