lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
7.43k stars 720 forks source link

Bundled python scripts have hardcoded paths to python.exe #1616

Open leonard84 opened 2 weeks ago

leonard84 commented 2 weeks ago

The files bundled in webui_forge_cu124_torch24\system\python\Scripts all have the hard-coded path #!D:\webui-forge\system\python\python.exe.

This leads to an error when trying to use pip to install xformers.

  1. start cmd.exe in webui_forge_cu124_torch24
  2. run environment.bat
  3. try to run pip3.10.exe install xformers-0.0.28.dev893+cu124-cp310-cp310-win_amd64.whl
Fatal error in launcher: Unable to create process using '"D:\webui-forge\system\python\python.exe"  "C:\ai\webui_forge_cu124_torch24\system\python\Scripts\pip3.10.exe" ': 

I could fix it by manually replacing the line #!D:\webui-forge\system\python\python.exe with the correct path for my system, but I think this should be addressed if this is the official way to install webui-forge.

Git-Maniac commented 1 week ago

I've exactely the same issue. What did you replace exactely with what path? Thanks