Если вы пытаетесь запустить Python и получаете ошибку с кодом выхода 9009, эта ошибка обычно представляет собой общий код ошибки, указывающий на ошибку командной строки, а это означает, что существует множество потенциальных причин этой проблемы.
Есть несколько шагов, которые вы можете предпринять для устранения неполадок и исправления ошибки кода выхода 9009 при запуске Python. Вот некоторые из наиболее распространенных причин этой ошибки и способы их устранения:
1. Python не установлен или настроен неправильно
Если Python не установлен в вашей системе или настроен неправильно, вы можете столкнуться с ошибкой кода выхода 9009 при попытке запустить его. Чтобы решить эту проблему, вы должны убедиться, что Python установлен в вашей системе и что путь к исполняемому файлу Python указан правильно.
Чтобы проверить, установлен ли Python на вашем компьютере, откройте командную строку и введите «python». Если Python установлен, интерпретатор Python должен запуститься, и вы должны увидеть отображаемый номер версии Python. Если Python не установлен, вам необходимо загрузить и установить его с веб-сайта Python.
Если Python установлен, но настроен неправильно, вам может потребоваться обновить переменные среды вашей системы, чтобы включить путь к исполняемому файлу Python. Для этого вы можете выполнить следующие шаги:
- Щелкните правой кнопкой мыши значок «Мой компьютер» или «Этот компьютер» на рабочем столе и выберите «Свойства».
- Нажмите «Дополнительные параметры системы» в левой части окна.
- Нажмите кнопку «Переменные среды» в нижней части окна.
- В разделе «Системные переменные» прокрутите вниз, пока не найдете переменную «Путь», и нажмите «Изменить».
- Добавьте путь к исполняемому файлу Python в список путей в поле «Значение переменной». Путь обычно выглядит примерно так: «C:Python39».
- Нажмите «ОК», чтобы сохранить изменения.
2. Исполняемый файл Python поврежден или поврежден
Если исполняемый файл Python поврежден или поврежден, вы можете столкнуться с ошибкой кода выхода 9009 при попытке его запуска. Чтобы решить эту проблему, вы можете попробовать переустановить Python и убедиться, что установка завершилась без ошибок.
Чтобы переустановить Python, выполните следующие действия:
- Загрузите последнюю версию Python с веб-сайта Веб-сайт Python.
- Запустите установочный файл, чтобы запустить мастер установки.
- Следуйте инструкциям мастера, чтобы установить Python.
- Обязательно отметьте галочкой добавить путь к Python.
После завершения установки попробуйте снова запустить Python, чтобы проверить, устранена ли ошибка.
3. Проблема с переменными среды вашей системы.
Если есть проблема с переменными среды вашей системы, это может вызвать проблемы с запуском Python. Чтобы решить эту проблему, вы можете попробовать сбросить переменные среды вашей системы до их значений по умолчанию.
Чтобы сбросить переменные среды вашей системы, вы можете выполнить следующие действия:
- Откройте командную строку от имени администратора.
- Введите «setx PATH %PATH%; C:WindowsSystem32/M» и нажмите Enter. Это установит для переменной PATH значение по умолчанию.
- Перезагрузите компьютер и попробуйте снова запустить Python, чтобы проверить, устранена ли ошибка.
4. Возникла проблема с командой или сценарием, который вы пытаетесь запустить.
Если вы пытаетесь запустить неправильно настроенную команду или сценарий, это может привести к ошибке с кодом выхода 9009. Чтобы решить эту проблему, вы можете попробовать проверить команду или сценарий на наличие ошибок и убедиться, что они находятся в правильном каталоге.
Одно из приведенных выше решений должно устранить ошибку кода 9009, я надеюсь, что вы нашли эту статью полезной и полезной, поделитесь ею со своими друзьями, которые столкнулись с этой проблемой.
Спасибо за прочтение, хорошего дня 🙂
Ссылка на источник
When Pycharm creates the project, it prompts «Non-zero exit code(9009)»
tags: Selenium anaconda
Environment introduction: Anaconda+python3.7
I believe everyone has encountered the following errors when using Pycharm to create a project and need to import the Anaconda environment:
This is because the imported python executable file is wrong.
The import should be conda.exe in the Script folder, not python.exe in the root directory
Modify according to the figure below to succeed
Intelligent Recommendation
Pycharm error Non -Zero Exit Code (2) -Sterer
Foreword Use pycharm inPython InterpreterWhen the Python virtual environment is installed in the settings, it is likely to report an error:Non-zero exit code (2), As shown in the figure: Even upgradin…
More Recommendation
Non-zero exit code
When Pycharm download Django, Non-Zero EXIT CODE appeared The reason is that PIP needs to be upgraded Open CMD Enter C: Users 86159 Anaconda3 Scripts Enter PIP3 -V, appear below: Enter …
"reference
Reference is a new language feature introduced by C++. It is one of the important contents commonly used in C++. Correct and flexible use of references can make the program simple and efficient. I fou…
Bean quot
Bean’s reference statement First of all, this series of blog refers to the oil pipeSpring Expression LanguageTeaching videoReferencing BeansAnd write. start This episode is a simple look at how to use…
In the world of coding, it’s not uncommon to encounter a roadblock now and then. One such hurdle is the “Process finished with exit code” error in PyCharm. It’s daunting, frustrating, and can make you question your skills. But fear not! We have compiled some common causes and solutions to this error, so you can get back on track and slay those lines of code.
One reason for this error is an issue with your environment variables. If you have not correctly set them up, it can lead to problems when running external commands. One solution is to set the PATH variable to include the location of your Python interpreter. Another solution is to set the PYTHONPATH variable to include the location of your project folder.
Another possible cause of this error is a lack of system resources. If your computer does not have enough memory, the program might not be able to finish executing, leading to this error. One way to solve this is to close any unnecessary programs or applications that are running in the background. Alternatively, you can increase the memory allocated to your PyCharm process by going to “Help” > “Edit Custom VM Options” and increasing the value for the -Xmx option.
A third cause of this error is a problem with your code itself. If there is a syntax error, or if the code is attempting to call a non-existent function or module, PyCharm will not be able to finish executing the code, leading to this error. One solution is to carefully review your code for any mistakes or typos. Another solution is to use PyCharm’s debugger tool to step through your code and identify any issues.
Now that we’ve covered some possible causes, let’s delve deeper into some specific instances of this error and how to fix them.
If you are using the pyuic5 tool in PyCharm and encounter the “Process finished with exit code -1073741819” error, don’t worry, you’re not alone. This error occurs when the graphical user interface (GUI) that you are attempting to create has errors. The solution is to carefully review the GUI code for any mistakes or errors.
Another variation of this error is the “Process finished with exit code 137” error. This occurs when a process is terminated by a signal, usually as a result of running out of memory or encountering an error in the program. One way to solve this is to increase the memory allocated to your PyCharm process, as mentioned earlier.
If you encounter the “Process finished with exit code -1073740940 (0xC0000374)” error, it means that your program has attempted to access an invalid memory address. This error commonly occurs when using C extensions in Python. One solution is to update the C extension to the latest version. You can also try using a different version of Python or PyCharm that may be more compatible with the C extension you are using.
Lastly, if you encounter the “Non-zero exit code” error with code 9009, it usually means that the command you are running is not recognized by your system. One solution is to add the directory containing the command to your PATH environment variable.
In conclusion, encountering the “Process finished with exit code” error in PyCharm can be frustrating, but it does not have to be a roadblock. By carefully reviewing your environment variables, code, and system resources, you can identify the cause and apply the appropriate solution. Remember to stay calm and keep coding!
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
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
· 46 comments
Closed
Couldn’t launch python, exit code 9009
#1423
tieguyny opened this issue
Oct 1, 2022
· 46 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 . . .
- OS: Windows 10
- Browser: Chrome
Thanks in advance for your help.
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
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
You’ll see Python=
Find your python.exe install directory and add it after the equals
Example
Python=C:/python310/python.exe
I 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 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:pythonpython.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
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my case
I did enter the path and it shows like:
venv «C:UsersUSERDownloadsstable-diffusion-webui-masterstable-diffusion-webui-mastervenvScriptsPython.exe»
No Python at ‘»C:UsersUSERAppDataLocalProgramsPythonPython311python.exe’
anyone have the idea??
I did enter the path and it shows like: venv «C:UsersUSERDownloadsstable-diffusion-webui-masterstable-diffusion-webui-mastervenvScriptsPython.exe» No Python at ‘»C:UsersUSERAppDataLocalProgramsPythonPython311python.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
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my case
Doesn’t work for me
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe
Always reinstalling after unninstalling previous one.
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set»
set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@echo off
set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--precision full --no-half --medvram
call webui.bat
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 error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@echo off set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--precision full --no-half --medvram call webui.bat
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.
Alas, same error
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@echo off set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--precision full --no-half --medvram call webui.bat
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.
Alas, same error
Tell me your computer’s set-up.
I’m especially interested in your graphics card
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@echo off set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--precision full --no-half --medvram call webui.bat
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.
Alas, same error
Tell me your computer’s set-up. I’m especially interested in your graphics card
Got enough ram as well as GpuCpu
Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@echo off set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--precision full --no-half --medvram call webui.bat
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.
Alas, same error
Tell me your computer’s set-up. I’m especially interested in your graphics card
Got enough ram as well as GpuCpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7
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 error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@echo off set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--precision full --no-half --medvram call webui.bat
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.
Alas, same error
Tell me your computer’s set-up. I’m especially interested in your graphics card
Got enough ram as well as GpuCpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7
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
Same
@XuanRTS
When I open the webui-user.bat I got this error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@echo off set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--precision full --no-half --medvram call webui.bat
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.
Alas, same error
Tell me your computer’s set-up. I’m especially interested in your graphics card
Got enough ram as well as GpuCpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7
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 solutionSame
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 /stable-diffusion-webui
folder 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:
conda create --name qwe
(You can name it whatever you want instead of qwe)
conda activate qwe
conda install python
conda install git
webui-user.bat
(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 error
‘CALL C:pythonpython.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:UsersYouAppDataLocalProgramsPythonPython310python.exe
This was the solution to error 9009 in my caseDoesn’t work for me
It depends on where you installed Python, change the path according to where it is installed
I’ve reinstalled Python many times in different directories, manually edited Path when it was needed, tried rebooting, still nothing works.
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.
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:Python310python.exe Always reinstalling after unninstalling previous one.
When you edit a file, you should write «set» set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe
There is set, I’ve copy pasted here without Set by mistake…
@echo off set PYTHON=C:UsersYouAppDataLocalProgramsPythonPython310python.exe set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--precision full --no-half --medvram call webui.bat
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.
Alas, same error
Tell me your computer’s set-up. I’m especially interested in your graphics card
Got enough ram as well as GpuCpu Gigabyte Nvidia 2060 super gaming oc 8gb, 16gb ram, cpu 4 core 3.7
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 solutionSame
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
/stable-diffusion-webui
folder 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:
conda create --name qwe
(You can name it whatever you want instead of qwe)conda activate qwe conda install python conda install git webui-user.bat
(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
Nice, I’ll try it once I’ve got some free time, thank you very much
I fixed it! 👍
- Download 3.10.6 : https://www.python.org/search/?q=3.10.6&submit=
- Select “Install Now” and select «Add Python to PATH»
- open Command Prompt, check if Python is working : add «python —version» and press ENTER, if there show «Python 3. 9. 5»
it means your Python working well. Close it.(https://www.youtube.com/watch?v=uBnbVqUmZaQ&t=2s) - edit webui-user : You DONT NEED to add your python.exe install directory after the equals.
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:StableDiffusionsystempythonpython.exe
then save
2.Change the file path of webui.bat
↓ your pythone.exe path,for ex..↓that is my path
dir «D:StableDiffusionsystempythonPython.exe» >tmp/stdout.txt 2>tmp/stderr.txt
…
and
set PYTHON=»D:StableDiffusionsystempythonPython.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 UserAppdata Path i changed to just CProgramFiles. 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! 👍
1. Download 3.10.6 : https://www.python.org/search/?q=3.10.6&submit= 2. Select “Install Now” and select "Add Python to PATH" 3. open Command Prompt, check if Python is working : add "python --version" and press ENTER, if there show "Python 3. 9. 5" it means your Python working well. Close it.(https://www.youtube.com/watch?v=uBnbVqUmZaQ&t=2s) 4. edit webui-user : You DONT NEED to add your python.exe install directory after the equals.
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…
Thank you so much. This worked for me.
I fixed it! 👍
- Download 3.10.6 : https://www.python.org/search/?q=3.10.6&submit=
- Select “Install Now” and select «Add Python to PATH»
- open Command Prompt, check if Python is working : add «python —version» and press ENTER, if there show «Python 3. 9. 5»
it means your Python working well. Close it.(https://www.youtube.com/watch?v=uBnbVqUmZaQ&t=2s)- edit webui-user : You DONT NEED to add your python.exe install directory after the equals.
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…
for WHATEVER reason, this worked. thank you.
My 9009 error in Win10 fixed by:
- Set full path to «Python.exe» and «Python3xx» folder in «PATH» variable both for System and for user. [on this step still not working]
- Set those links first in the variable list. (in win10 just click on Up button)
Thanks, I’ll check it out.
「XoRDLC ***@***.***>」在 2023年5月26日 週五,06:02 寫道:
…
I am attempting to build a c++ solution in visual studio.
The error is as follows:
error MSB3073: The command "python D:...[file path]...SourceVS2013svnrev.py
:VCEnd" exited with code 9009.
I have done some searching and the code 9009 apparently means a bad path. One possible reason for this is that the path contains spaces. On the visual studio error list there is a line break in between ‘synrev.py’ and ‘:VCEnd’, so this may be the problem.
The error refers to a file called Microsoft.CppCommon.targets, the line supposedly being:
`<Exec Command="%(PreBuildEvent.Command)$(_BuildSuffix)" Condition="'%(PreBuildEvent.Command)' != ''"/>`
According to previous questions on SO this problem can be fixed by adding quotation marks around the relevant spot but I’m not sure where this is (it seems like there are quotation marks around everything already!)
Another possible suggested cause is that there is no path linking to the necessary command. Checking the visual studio output gives:
9> 'python' is not recognized as an internal or external command,
9> operable program or batch file.
The solution I am trying to build was obtained complete from the developers so it is possible that this is some sort of additional required file that they would just assume that I have installed. I have tried to search further but terms like ‘Python command’ are too generic and don’t seem to be yielding helpful information.
I’m guessing this is some commonly used extension or add-on for running python in visual studio but I am not very experienced here — python is something I have never used and I haven’t used visual studio before this project.
Thanks in advance for any suggestions.