Skip to content

pip install --upgrade diffusers[torch] fails with Python 3.12 on Windows 11 #5712

@canxerian

Description

@canxerian

Describe the bug

pip install --upgrade diffusers[torch] with Python 3.12 results in a failed installation, with one the (many) errors being:

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)

Workaround:
Use Python 3.11.

Note:
Writing this to hopefully save others from a day of head scratching.

Reproduction

Run pip install --upgrade diffusers[torch] using Python 3.12

Logs

No response

System Info

Python 3.12.x

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions