Could not install stable-diffusion-webui (StabilityMatrix.Core.Exceptions.ProcessException: Venv creation failed with code 1
Trying to install Stable Diffusion WebUI from StablityMatrix, but this error "Package Modification Failed" comes out. I could install and use ComfyUI. Error code:
Unpacking resources
Unpacking resources
Download Complete
C:\Users\my_name\AppData\Local\Temp\0ec8c814-55da-41a5-b69d-fa251c113653_StabilityMatrix-win-x64.zip.653\Data\Assets\Python310\python.exe: No module named virtualenv
Could not install stable-diffusion-webui (StabilityMatrix.Core.Exceptions.ProcessException: Venv creation failed with code 1
at StabilityMatrix.Core.Python.PyVenvRunner.Setup(Boolean existsOk, Action`1 onConsoleOutput, CancellationToken cancellationToken)
at StabilityMatrix.Core.Models.Packages.A3WebUI.InstallPackage(String installLocation, TorchVersion torchVersion, SharedFolderMethod selectedSharedFolderMethod, DownloadPackageVersionOptions versionOptions, IProgress`1 progress, Action`1 onConsoleOutput)
at StabilityMatrix.Core.Models.Packages.A3WebUI.InstallPackage(String installLocation, TorchVersion torchVersion, SharedFolderMethod selectedSharedFolderMethod, DownloadPackageVersionOptions versionOptions, IProgress`1 progress, Action`1 onConsoleOutput)
at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress`1 progress)
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IReadOnlyList`1 steps))
[Stable Diffusion WebUI Folder]
[Stable Diffusion WebUI Folder / venv]
- OS: Windows 10
- Python(stability matrix): 3.10.11
- Stability matrix version: 2.9.0
I am not sure what the official solution is, but it seems that your Python does not have the virtualenv library, so it is not able to create a custom environment for the package. You can try to install it manually in your command line with pip.
pip install virtualenv
same problem here for v 2.9.0
This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.
This issue was closed because it has been stale for 5 days with no activity.