Skip to content

Exception: Error during installation: Using Python 3.12.11 environment at: venv #1985

@mcaniffb

Description

@mcaniffb

Error when installing Krita AI Diffusion after a fresh install of both Krita and Krita AI zip file.
I've tried installing latest version of python from https://www.python.org/downloads/ but it didn't change anything.
When I hit install it stays stuck at Installing Pytorch

File "C:\Users\Bryan\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 351, in install
await self._install(cb)
File "C:\Users\Bryan\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 178, in _install
await try_install(comfy_dir, self._install_comfy, comfy_dir, network, cb)
File "C:\Users\Bryan\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 802, in try_install
raise e
File "C:\Users\Bryan\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 797, in try_install
await installer(*args)
File "C:\Users\Bryan\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 263, in _install_comfy
await self._pip_install("PyTorch", ["-U"] + torch_args, cb)
File "C:\Users\Bryan\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 791, in execute_process
raise Exception(
("Error during installation") + f": {errlog}")
Exception: Error during installation: Using Python 3.12.11 environment at: venv
Resolved 14 packages in 2.06s
Downloading torch (3.2GiB)
Downloading torch (3.2GiB)
× Failed to download torch==2.8.0+cu128
├─▶ Failed to write to the distribution cache
├─▶ error decoding response body
├─▶ request or response body error
├─▶ error reading a body from connection
╰─▶ connection reset

2025-08-29 14:21:25,535 ERROR Installation failed
2025-08-29 14:21:25,535 INFO Found server installation vincomplete at C:\Users\Bryan\AppData\Roaming\krita\ai_diffusion\ComfyUI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions