StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Could not install stable-diffusion-webui (StabilityMatrix.Core.Exceptions.ProcessException: Venv creation failed with code 1

Open funkinaoki opened this issue 1 year ago • 2 comments

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))

image [Stable Diffusion WebUI Folder] image [Stable Diffusion WebUI Folder / venv] image

  • OS: Windows 10
  • Python(stability matrix): 3.10.11
  • Stability matrix version: 2.9.0

funkinaoki avatar Mar 05 '24 04:03 funkinaoki

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

p-veloso avatar Mar 05 '24 21:03 p-veloso

same problem here for v 2.9.0

ratzorizzo69 avatar Mar 09 '24 00:03 ratzorizzo69

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.

github-actions[bot] avatar Jul 07 '24 01:07 github-actions[bot]

This issue was closed because it has been stale for 5 days with no activity.

github-actions[bot] avatar Jul 13 '24 01:07 github-actions[bot]