Lỗi files ready to be written to cd
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Show 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 Closed tieguyny opened this issue Oct 1, 2022 · 49 comments Comments
I am getting two different errors when I try to launch the webui.bat file from windows explorer. First one is this: Couldn't launch python exit code: 9009 stderr: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Launch unsuccessful. Exiting. Press any key to continue . . . So I go to "Manage app execution aliases" in windows and disable python. Then I get this message instead: stderr: 'python' is not recognized as an internal or external command, operable program or batch file. Launch unsuccessful. Exiting. Press any key to continue . . .
Thanks in advance for your help. The text was updated successfully, but these errors were encountered:
Waloumi, packetlost, icucryalone, ruhigah, retSIN, DMark9009, silhouette7b, Comely11, twohand0809, Skeletonman59, and 5 more reacted with thumbs up emoji All reactions
Thank you, you are correct. I actually deleted Python and reinstalled, making sure to tick the checkbox to add it to path during the installation. All fixed now, thank you.
I had added python to the path and it's still giving me that 9009 error kpz71, ReticentAdjutant, AbelStuker, ZeronoFreya, therealbigdumb, luigisopa, GittiPet, GsHeri, Occidus, ravioliformioli, and 23 more reacted with thumbs up emoji All reactions
I also added it to the path and I am still getting the 9009 error
I had the same problem (Python installed and in PATH). I was able to fix this by following the instructions in this Reddit comment: Open Webui-user.bat in notepad I gave it the same file path as in PATH, so I'm truly clueless what the problem was. But this worked for me! vinaythoke, GittiPet, Goldenkagan, PlasmX, GsHeri, Slypher, blzbb, Cooldude20011, selkee, RobotMorph, and 44 more reacted with thumbs up emoji wyemhu12 and GEArce reacted with hooray emoji All reactions
I had the same problem (Python installed and in PATH). I was able to fix this by following the instructions in this Reddit comment:Open Webui-user.bat in notepad You'll see Python= Find your python.exe install directory and add it after the equals Example Python=C:/python310/python.exeI gave it the same file path as in PATH, so I'm truly clueless what the problem was. But this worked for me! I had same problem, also use this worked for me, thanks!
When I open the webui-user.bat I got this error 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venv exit code: 9009 stderr: '-m' is not recognized as an internal or external command, operable program or batch file. Launch unsuccessful. Exiting. Press any key to continue . . . Is there anything wrong when I install python or anything else?
@XuanRTS When I open the webui-user.bat I got this error Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my case
I did enter the path and it shows like: venv "C:\Users\USER\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\venv\Scripts\Python.exe" No Python at '"C:\Users\USER\AppData\Local\Programs\Python\Python311\python.exe' anyone have the idea??
I did enter the path and it shows like: venv "C:\Users\USER\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\venv\Scripts\Python.exe" No Python at '"C:\Users\USER\AppData\Local\Programs\Python\Python311\python.exe' anyone have the idea?? Okay, I figured it out. I was having the same issue. Two things: make sure that you actually added Python.exe at the end of the directory and make sure the directory is next to PYTHON=. I forgot to do the former: ID10T error. lol Thats what solved my problem anyway.
in fact,your windows have 2 path one,at yourusername 's environment variables two,at system environment variables the bat will check 2nd remember reboot your PC,have fun
If someone is still having problems after trying the comments above, I tried uninstalling python, and in the re-installation I choose the custom install, checked the "install for all users" checkbox and finished the rest with default configuration. It worked for me because the path changed to C:/ProgramFiles instead of C:/Users/XXX/AppData/Local/Programs. I don't know if this is the recomended way but I can use it now.
In my case, the issue ended up being solved by not having the SD webui cloned to my GitHub folder. It runs fine from a folder in the root directory of my drive, but will not run from the cloned folder. The really strange thing is, running it from a cloned version in my GitHub folder on my home computer works fine. It's just an issue on my work computer.
I had the same problem, and I found out that any SPACE in the path made it unable to read (like in "/program files/") so i made a python folder on C:/ and it works now
For me nothing solved this issue so far. One time i installed python to C:/ without folders, and i got an error saying there was no pip module. Still can't figure out how to fix it.
I tried loading python via the windows terminal. It couldn't execute the programme. I noticed the "py" command worked so I did "where py" My py.exe was in C:/Windows I'd already installed python and added it to the PATH so I copied the python.exe from my installation folder to the C:/Windows folder Then ran webui-user.bat and everything is now working perfectly.
That did not work dor me, sadly
@XuanRTSWhen I open the webui-user.bat I got this error 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venv exit code: 9009 stderr: '-m' is not recognized as an internal or external command, operable program or batch file. Launch unsuccessful. Exiting. Press any key to continue . . . Is there anything wrong when I install python or anything else? Doesn't work for me :(
@XuanRTSDoesn't work for me :(When I open the webui-user.bat I got this error 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venv exit code: 9009 stderr: '-m' is not recognized as an internal or external command, operable program or batch file. Launch unsuccessful. Exiting. Press any key to continue . . . Is there anything wrong when I install python or anything else?Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my case It depends on where you installed Python, change the path according to where it is installed
> @XuanRTSIt depends on where you installed Python, change the path according to where it is installedWhen I open the webui-user.bat I got this errorDoesn't work for me :('CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venv exit code: 9009 stderr: '-m' is not recognized as an internal or external command, operable program or batch file. Launch unsuccessful. Exiting. Press any key to continue . . . Is there anything wrong when I install python or anything else?Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my case I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
>> @XuanRTS>I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.> When I open the webui-user.bat I got this errorIt depends on where you installed Python, change the path according to where it is installed'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvDoesn't work for me :(exit code: 9009 stderr: '-m' is not recognized as an internal or external command, operable program or batch file. Launch unsuccessful. Exiting. Press any key to continue . . . Is there anything wrong when I install python or anything else?Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my case Tell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.
>>> @XuanRTS>>Tell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.>> When I open the webui-user.bat I got this errorI've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvIt depends on where you installed Python, change the path according to where it is installedexit code: 9009Doesn't work for me :(stderr: '-m' is not recognized as an internal or external command, operable program or batch file. Launch unsuccessful. Exiting. Press any key to continue . . . Is there anything wrong when I install python or anything else?Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my case Run Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.
>>>> @XuanRTS>>>Run Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>>> When I open the webui-user.bat I got this errorTell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvI've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.> exit code: 9009It depends on where you installed Python, change the path according to where it is installedstderr: '-m' is not recognized as an internal or external command, operable program or batch file.Doesn't work for me :(Launch unsuccessful. Exiting. Press any key to continue . . . Is there anything wrong when I install python or anything else?Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my case When you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe
>>>>> @XuanRTS>>>>When you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>>> When I open the webui-user.bat I got this errorRun Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvTell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.>> exit code: 9009I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.It depends on where you installed Python, change the path according to where it is installedLaunch unsuccessful. Exiting. Press any key to continue . . .Doesn't work for me :(Is there anything wrong when I install python or anything else?Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my case There is set, I've copy pasted here without Set by mistake...
>>>>>> @XuanRTS>>>>>There is set, I've copy pasted here without Set by mistake...>>>>> When I open the webui-user.bat I got this errorWhen you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvRun Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>>> exit code: 9009Tell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.>> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.> Launch unsuccessful. Exiting. Press any key to continue . . .It depends on where you installed Python, change the path according to where it is installedIs there anything wrong when I install python or anything else? Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my caseDoesn't work for me :(
All right, try it with this code and tell me if it works for you, I think I already figured out what your problem is.
>>>>>>> @XuanRTS>>>>>>>>>>>> When I open the webui-user.bat I got this errorThere is set, I've copy pasted here without Set by mistake...>>>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvWhen you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>>> exit code: 9009Run Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>>> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.Tell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.>> Launch unsuccessful. Exiting. Press any key to continue . . .I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.> Is there anything wrong when I install python or anything else?It depends on where you installed Python, change the path according to where it is installedUninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my caseDoesn't work for me :( Alas, same error
>>>>>>>> @XuanRTS>>>>>>>Alas, same error>>>>>>> When I open the webui-user.bat I got this error>>>>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvThere is set, I've copy pasted here without Set by mistake...>>>>> exit code: 9009When you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>>> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.Run Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>>> Launch unsuccessful. Exiting. Press any key to continue . . .Tell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.>> Is there anything wrong when I install python or anything else?I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.It depends on where you installed Python, change the path according to where it is installedUninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example: set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my caseDoesn't work for me :( Tell me your computer's set-up. I'm especially interested in your graphics card
>>>>>>>>> @XuanRTS>>>>>>>>Tell me your computer's set-up. I'm especially interested in your graphics card>>>>>>>> When I open the webui-user.bat I got this errorAlas, same error>>>>>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venv>>>>>> exit code: 9009There is set, I've copy pasted here without Set by mistake...>>>>> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.When you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>>> Launch unsuccessful. Exiting. Press any key to continue . . .Run Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>>> Is there anything wrong when I install python or anything else?Tell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.>I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example:It depends on where you installed Python, change the path according to where it is installedset PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe This was the solution to error 9009 in my caseDoesn't work for me :( Got enough ram as well as Gpu\Cpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7
>>>>>>>>>> @XuanRTS>>>>>>>>>Got enough ram as well as Gpu\Cpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7>>>>>>>>> When I open the webui-user.bat I got this errorTell me your computer's set-up. I'm especially interested in your graphics card>>>>>>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvAlas, same error>>>>>>> exit code: 9009>>>>>> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.There is set, I've copy pasted here without Set by mistake...>>>>> Launch unsuccessful. Exiting. Press any key to continue . . .When you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>>> Is there anything wrong when I install python or anything else?Run Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>>Tell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.> Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example:I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exeIt depends on where you installed Python, change the path according to where it is installedThis was the solution to error 9009 in my caseDoesn't work for me :( Change COMMANDLINE_ARGS= to COMMANDLINE_ARGS=--medvram and then Launch webui-user.bat, Open it as normal user, not as administrator. If that doesn't work, I'll give you an alternative solution
>>>>>>>>>>> @XuanRTS>>>>>>>>>>>>>>>>>>>> When I open the webui-user.bat I got this errorGot enough ram as well as Gpu\Cpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7>>>>>>>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvTell me your computer's set-up. I'm especially interested in your graphics card>>>>>>>> exit code: 9009Alas, same error>>>>>>> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.>>>>>> Launch unsuccessful. Exiting. Press any key to continue . . .There is set, I've copy pasted here without Set by mistake...>>>>> Is there anything wrong when I install python or anything else?When you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>>Run Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>> Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example:Tell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.> set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exeI've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.This was the solution to error 9009 in my case Doesn't work for me :(It depends on where you installed Python, change the path according to where it is installed Same
>>>>>>>>>>>> @XuanRTS>>>>>>>>>>>Same>>>>>>>>>>> When I open the webui-user.bat I got this errorChange COMMANDLINE_ARGS= to COMMANDLINE_ARGS=--medvram and then Launch webui-user.bat, Open it as normal user, not as administrator. If that doesn't work, I'll give you an alternative solution>>>>>>>>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvGot enough ram as well as Gpu\Cpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7>>>>>>>>> exit code: 9009Tell me your computer's set-up. I'm especially interested in your graphics card>>>>>>>> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.Alas, same error>>>>>>> Launch unsuccessful. Exiting. Press any key to continue . . .>>>>>> Is there anything wrong when I install python or anything else?There is set, I've copy pasted here without Set by mistake...>>>>When you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>> Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example:Run Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>> set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exeTell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.> This was the solution to error 9009 in my caseI've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.Doesn't work for me :(It depends on where you installed Python, change the path according to where it is installed Step 1: Install Git (page) -When installing, make sure to check the box for 'Windows Explorer integration -> Git Bash' Step 2: Clone the WebUI repo to your desired location: -Right-click anywhere and select 'Git Bash here' -Enter git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui (Note: to update, all you need to do is is type git pull within the newly made webui folder) Step 3: Download your preferred model(s): Step 4: Rename your .ckpt file to "model.ckpt", and place it in the /models/Stable-diffusionfolder -You can have as many models as you want in the folder, "model.ckpt" is just the one it will load by default Step 5: Download Miniconda HERE. Download Miniconda 3 Step 6: Install Miniconda in the default location. Install for all users. Uncheck "Register Miniconda as the system Python 3.9" unless you want to Step 7: Open Anaconda Prompt (miniconda3) Step 8: In Miniconda, navigate to the
1folder wherever you downloaded using "cd" to jump folders. (Or just type "cd" followed by a space, and then drag the folder into the Anaconda prompt.) Step 9: Type the following commands to make an environment and install the necessary dependencies:
2 (You can name it whatever you want instead of qwe)
(Note: it may seem like it's stuck on "Installing torch" in the beginning. This is normal and should take 10-15 minutes) It should now be ready to use Usage:Navigate to /stable-diffusion-webui in Miniconda Type conda activate qwe (You will need to type 'conda activate qwe' every time you wish to run webui) Type webui-user.bat After loading the model it should give you a LAN address such as '127.0.0.1:7860' Enter the address into your browser to enter the GUI environment
>>>>>>>>>>>>> @XuanRTS>>>>>>>>>>>>>>>>>>>>>>>> When I open the webui-user.bat I got this errorSame>>>>>>>>>>> 'CALL C:\python\python.exe -c "import sys; print(sys.executable)"' is not recognized as an internal or external command, operable program or batch file. Creating venv in directory venv using python Unable to create venv in directory venvChange COMMANDLINE_ARGS= to COMMANDLINE_ARGS=--medvram and then Launch webui-user.bat, Open it as normal user, not as administrator. If that doesn't work, I'll give you an alternative solution>>>>>>>>>> exit code: 9009Got enough ram as well as Gpu\Cpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7>>>>>>>>> stderr: '-m' is not recognized as an internal or external command, operable program or batch file.Tell me your computer's set-up. I'm especially interested in your graphics card>>>>>>>> Launch unsuccessful. Exiting. Press any key to continue . . .Alas, same error>>>>>>> Is there anything wrong when I install python or anything else?>>>>>There is set, I've copy pasted here without Set by mistake...>>>> Uninstall Python, install it again, don't forget to check the "PATH" box when installing, then when editing the .bat, write this: Here's an example:When you edit a file, you should write "set" set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exe>>> set PYTHON=C:\Users\You\AppData\Local\Programs\Python\Python310\python.exeRun Python installer as admin, checked path, checked 'for all users', custom directory C:\ (tried default as well ofc), after installation is complete I checked in env.variables if Path is correct. Edited webui-user.bat - PYTHON=C:\Python310\python.exe Always reinstalling after unninstalling previous one.>> This was the solution to error 9009 in my caseTell me step by step how-you run the file and what you write inside. Also, when reinstalling it is better not to install the program over the old one, but to uninstall the previous one.I've reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.Doesn't work for me :(It depends on where you installed Python, change the path according to where it is installed Nice, I'll try it once I've got some free time, thank you very much :)
I fixed it! 👍
set PYTHON= set VENV_DIR=yournamehere set COMMANDLINE_ARGS= call webui.bat 5. Make sure you already : Install git. Download the stable-diffusion-webui repository, for example by running git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git. Place stable diffusion checkpoint (model.ckpt) in the models/Stable-diffusion directory (see dependencies for where to get it). 6. Save it and open webui-user.bat it will start working and dowloading...
I had the same problem (Python installed and in PATH). I was able to fix this by following the instructions in this Reddit comment:Open Webui-user.bat in notepad You'll see Python= Find your python.exe install directory and add it after the equals Example Python=C:/python310/python.exeI gave it the same file path as in PATH, so I'm truly clueless what the problem was. But this worked for me! Thank you for the help! This solved the problem for me!
1.Change the file path of webui-user.bat ↓ your pythone.exe path,for ex..↓that is my path set PYTHON=D:\StableDiffusion\system\python\python.exe then save 2.Change the file path of webui.bat ↓ your pythone.exe path,for ex..↓that is my path dir "D:\StableDiffusion\system\python\Python.exe" >tmp/stdout.txt 2>tmp/stderr.txt ... and set PYTHON="D:\StableDiffusion\system\python\Python.exe" then it's work!
I've was trying everything here. Uninstalling stuff, installing it again, you get the drift. Come to find out that it was actually the 'pyvenv.cfg' file that was messing me up. It was because it was set to the wrong location. To fix, I put the location of my python folder like others have mentioned after the 'home = '. Extreme Novice at this kind of stuff, but I hope this is able to help at least one person.
I had the 9009 issue. To be very simple. I uninstalled Python using the installation wizard and did a custom installation. Then added it to path and checked the top box that said install for all users on Python 3.10.10. It refused to let me add the path in the .bat
What worked for me is moving the Python folder to a shorter Path on my Harddrive. Instead of the whole User\Appdata Path i changed to just C\ProgramFiles. After that it was fine. Also Check both boxes when installing python.
If someone is still having problems after trying the comments above, I tried uninstalling python, and in the re-installation I choose the custom install, checked the "install for all users" checkbox and finished the rest with default configuration. It worked for me because the path changed to C:/ProgramFiles instead of C:/Users/XXX/AppData/Local/Programs. I don't know if this is the recomended way but I can use it now. this works for me. now I can run webui.bat
after I tried everything, then I find out! just leave the blink and do not write anything. then u can work. like this: git pull @echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS= call webui.bat
I fixed it! 👍 Thank you so much. This worked for me.
I fixed it! 👍 for WHATEVER reason, this worked. thank you.
My 9009 error in Win10 fixed by:
Thanks, I'll check it out. 「XoRDLC ***@***.***>」在 2023年5月26日 週五,06:02 寫道:
thanks bruh, your teachings rocked !!
Omg, I resolved my issue and its because I caused my own dumb problem. I installed the Automatic1111 and ran it first before I even had Python installed, so it kept trying to get python from the wrong location the entire time. I fixed it by deleting and reinstalling Automatic1111 again after making sure I had Python installed correctly first |