InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Failed to install invokeai

Open Kvento opened this issue 8 months ago • 4 comments

Is there an existing issue for this problem?

  • [x] I have searched the existing issues

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

RTX 4070 TI SUPER

GPU VRAM

16

Version number

5.8.1

Browser

Yandex

Python dependencies

No response

What happened

An error occurs during installation via the installer and the installation ends.

Installer log:

Starting up...
Installation parameters:
- Install location: F:\All_AIs\Image_Video\InvokeAI
- GPU type: nvidia>=30xx
- Torch Platform: cuda
Creating virtual environment...
> C:\Users\Kvento\AppData\Local\Temp\2tHK8V6PQNi8BAls37RH9oI97Ms\resources\bin\uv.exe venv --relocatable --prompt invoke --python 3.11 --python-preference only-managed F:\All_AIs\Image_Video\InvokeAI\.venv
Using CPython 3.11.11
Creating virtual environment at: F:\All_AIs\Image_Video\InvokeAI\.venv
Activate with: F:\All_AIs\Image_Video\InvokeAI\.venv\Scripts\activate
Installing invokeai package...
> C:\Users\Kvento\AppData\Local\Temp\2tHK8V6PQNi8BAls37RH9oI97Ms\resources\bin\uv.exe pip install --python 3.11 --python-preference only-managed invokeai==v5.8.1 --force-reinstall --compile-bytecode --index=https://download.pytorch.org/whl/cu124
  × Failed to download and build `pyperclip==1.9.0`
  ├─▶ Failed to deserialize cache entry
  ╰─▶ array had incorrect length, expected 5
  help: `pyperclip` (v1.9.0) was included because `invokeai` (v5.8.1)
        depends on `pyperclip`
Failed to install invokeai python package: Process exited with code 1
Try installing again with Repair mode enabled to fix this.
Ask for help on Discord or GitHub if you continue to have issues.

What you expected to happen

The installation completes successfully and Invoke AI works.

How to reproduce the problem

No response

Additional context

No response

Discord username

No response

Kvento avatar Mar 18 '25 14:03 Kvento

Please follow the instructions in the log message and retry the install without repair mode enabled.

psychedelicious avatar Mar 18 '25 19:03 psychedelicious

Please follow the instructions in the log message and retry the install without repair mode enabled.

I tried to enable and disable repair mode, but it does not help. Speaking of instructions, I think it is difficult to do something wrong there. You just need to select the installation directory, the program version and the video card version, and that is all that I can influence using this installer.

Kvento avatar Mar 18 '25 22:03 Kvento

Is there any other way to install Invoke AI now without using this installer?

Kvento avatar Mar 18 '25 22:03 Kvento

Maybe a python package got corrupted or didn't download successfully. Please follow these steps to clear the package cache then try again.

If you don't want to use the installer, you can follow manual install instructions.

psychedelicious avatar Mar 18 '25 22:03 psychedelicious