InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Failed to create virtual environment: spawn EPERM

Open YesThisIsMe007 opened this issue 9 months ago • 5 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

NVIDIA RTX 3070 LHR

GPU VRAM

No response

Version number

v5.9.0

Browser

Edge Chromium134.0.3124.93 64-bit

Python dependencies

Python 3.11.9. 64-bit

What happened

Starting up... Installation parameters:

  • Install location: C:\InvokeAI
  • GPU type: nvidia>=30xx
  • Torch Platform: cuda Creating virtual environment...

C:\Users\tomaz\AppData\Local\Temp\2tHK8V6PQNi8BAls37RH9oI97Ms\resources\bin\uv.exe venv --relocatable --prompt invoke --python 3.11 --python-preference only-managed C:\InvokeAI.venv Failed to create virtual environment: spawn EPERM 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

I expected to install InvokeAI.

How to reproduce the problem

Just try to install InvokeAI with .exe installer.

Additional context

No response

Discord username

No response

YesThisIsMe007 avatar Mar 27 '25 22:03 YesThisIsMe007

My problem is somehow similar to https://github.com/invoke-ai/InvokeAI/issues/7808. Running in repair mode did not help.

YesThisIsMe007 avatar Mar 27 '25 22:03 YesThisIsMe007

You're installing in the root of the C: drive. Try to select a location inside your user dir or another drive where your user has write permissions.

ebr avatar Mar 27 '25 23:03 ebr

I tried to install inside C:/InvokeAI/. Until now always successful.

Starting up... Installation parameters:

  • Install location: C:\Users\tomaz\AppData\Local\InvokeAI
  • GPU type: nvidia>=30xx
  • Torch Platform: cuda Repair mode enabled:
  • Force-reinstalling python
  • Deleting and recreating virtual environment Reinstalling Python...

C:\Users\tomaz\AppData\Local\Temp\2tHK8V6PQNi8BAls37RH9oI97Ms\resources\bin\uv.exe python install 3.11 --python-preference only-managed --reinstall Failed to install Python: spawn EPERM Try installing again with Repair mode enabled to fix this. Ask for help on Discord or GitHub if you continue to have issues.`

Tried in repair mode.

YesThisIsMe007 avatar Mar 28 '25 00:03 YesThisIsMe007

I went now through https://invoke-ai.github.io/InvokeAI/installation/manual/#walkthrough and "For Windows: Open PowerShell with administrative privileges.

Run this command to download and execute the installation script:

powershell irm https://astral.sh/uv/install.ps1 | iex After Installation: Restart your terminal to ensure uv is accessible.

Verify the installation by running:

bash uv --version Let me know if you need help with any specific step!

" (thank you, Microsoft Copilot) successfully.

After setting and activating environment I was able to continue with the .exe installer.

YesThisIsMe007 avatar Mar 28 '25 01:03 YesThisIsMe007

Again - with v5.9.1.

YesThisIsMe007 avatar Mar 31 '25 15:03 YesThisIsMe007