[bug]: Failed to create virtual environment: spawn EPERM
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
My problem is somehow similar to https://github.com/invoke-ai/InvokeAI/issues/7808. Running in repair mode did not help.
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.
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.
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.
Again - with v5.9.1.