Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
YesThisIsMe007 opened this issue Mar 27, 2025 · 5 comments
Open
1 task done

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

YesThisIsMe007 opened this issue Mar 27, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@YesThisIsMe007
Copy link

Is there an existing issue for this problem?

  • 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 YesThisIsMe007 added the bug Something isn't working label Mar 27, 2025
@YesThisIsMe007
Copy link
Author

YesThisIsMe007 commented Mar 27, 2025

My problem is somehow similar to #7808.
Running in repair mode did not help.

@ebr
Copy link
Member

ebr commented Mar 27, 2025

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.

@YesThisIsMe007
Copy link
Author

YesThisIsMe007 commented Mar 28, 2025

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
Copy link
Author

YesThisIsMe007 commented Mar 28, 2025

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
Copy link
Author

Again - with v5.9.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants