Geany ошибка 9009

Среда разработки Geany Python Решение и ответ на вопрос 2514045

supmener

-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

1

16.10.2019, 13:18. Показов 8577. Ответов 86

Метки нет (Все метки)


Работаю в Windows XP Home 32 bits, Python 2.7.5. На более позднюю версию планирую обновляться не сайчас, а позднее.
Версия Geany 1.31. Запускаю такой код:

Python
1
2
3
4
5
6
7
# -*- coding: utf-8 -*-
correctAnswer=3
timsAnswer = raw_input()
if timsAnswer == correctAnswer:
    print "Ты ответил правильно!"
    score = score + 1
print "Спасибо за игру."

Получаю в чёрном окне при запуске
╨б╨┐╨░╤Б╨╕╨▒╨╛ ╨╖╨░ ╨╕╨│╤А╤Г.

Если убрать строку с кодировкой, то отображает следующее
File «hw80.py», line 4
SyntaxError: Non-ASCII character ‘xd0’ in file hw80.py on line 4, but no encodi
ng declared; see http://www.python.org/peps/pep-0263.html for details

Что подправить, чтобы было нормально?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



Damenikx

954 / 340 / 113

Регистрация: 04.08.2018

Сообщений: 2,534

16.10.2019, 14:11

2

Python
1
# -*- coding: cp1251 -*-

Добавлено через 42 секунды
Вы знаете свою системную кодировку?

Добавлено через 8 секунд
Проверить можно так: sys.stdout.encoding

Добавлено через 10 секунд
В командной строке.

Добавлено через 1 минуту
Да и сам код у вас написан не верно.



0



-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

16.10.2019, 14:23

 [ТС]

3

Свою кодировку не знаю. sys.stdout.encoding в CMD не работает, если в таком виде ввести. В самом редакторе кода выставлена была UTF-8, нашёл в настройках в восточноевропейских кодировках Windows-1251 и активировал. Создал новый документ в этой кодировке, скопировал в него текст из предыдущего и сохранил с тем же именем, перезаписав предыдущий. На месте русских фраз перепечатал вручную на клавиатуре их. Всё равно русские фразы не отображаются нормально.



0



Damenikx

954 / 340 / 113

Регистрация: 04.08.2018

Сообщений: 2,534

16.10.2019, 14:36

4

Python
1
2
3
4
import sys
 
s = sys.stdout.encoding
print(s)

Добавлено через 3 минуты
Это Вам покажет кодировку Windows, затем Вам надо в редакторе выставить такую же, как и винде, затем тут # -*- coding: utf-8 -*- дописать ту же кодировку, что и в винде и в редакторе и попробовать.

Добавлено через 1 минуту
Бесплатный совет:

1) Обновить Python до 3.7
2) Установить хотя-бы Windows 7 (лучше, конечно 10-ка)
3) Установить PyCharm
4) Наслаждаться.



0



Alli_Lupin

16.10.2019, 14:38

Не по теме:

Цитата
Сообщение от Damenikx
Посмотреть сообщение

2) Установить хотя-бы Windows 7 (лучше, конечно 10-ка)

эм, очень спорно



0



-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

16.10.2019, 14:42

 [ТС]

6

import sys

s = sys.stdout.encoding
print(s)

Вставил в Geany. Показало:
«.» не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

——————
(program exited with code: 9009)

XP нужна на этом ноутбуке. Потом возможно куплю другой с более современной операционной системой.



0



954 / 340 / 113

Регистрация: 04.08.2018

Сообщений: 2,534

16.10.2019, 15:03

7

supmener, у Вас есть консоль Python? Сделайте через неё.

Добавлено через 46 секунд

Не по теме:

Alli_Lupin, если компьютер не подключён к интернету, то хоть 95, но если подключён…Мне бы страшно было бы даже на страницу поиска зайти.



0



supmener

-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

16.10.2019, 15:09

 [ТС]

8

XP обновляется до сих пор. Консоль Python не выдаёт никакого ответа на этот код:

Python
1
2
3
>>> s = sys.stdout.encoding
print(s)
>>>



0



954 / 340 / 113

Регистрация: 04.08.2018

Сообщений: 2,534

16.10.2019, 16:09

9

Цитата
Сообщение от supmener
Посмотреть сообщение

XP обновляется до сих пор. Консоль Python не выдаёт никакого ответа на этот код:

А import sys — вводили?)



0



Alli_Lupin

16.10.2019, 16:19

Не по теме:

Damenikx, дело не в том, что не безопасно и прочее. Винда — платная.



0



Damenikx

16.10.2019, 16:24

Не по теме:

Alli_Lupin, винда — фу, Linux — рулит!



0



-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

16.10.2019, 17:22

 [ТС]

12

На Хубунту когда то сидел некоторое время, потом поломалась, перестала загружаться, а из резервной копии не захотело восстанавливаться, отложил на время, а больше не стал потом ставить по новой.

import sys раньше не вводил, сейчас ввёл.
>>> import sys
s = sys.stdout.encoding
print(s)
>>>



0



-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

17.10.2019, 22:20

 [ТС]

13

Вспомнил про 866 кириллицу для консоли. Выставил в настройках и заработало.

Добавлено через 1 минуту
Только если ошибка в коде, русский язык в консоли становится не читаемым.

Добавлено через 1 час 27 минут
Опять не работает. А первый раз заработало странным образом. Раньше устанавливал под эмулированной системой и скопировал в папку не под эмуляцией. Потом после перезагрузки изменения исчезли. Запустил программу из этой папки. В реестре не было записей от неё. Она зупустилась, только на английском вроде всё было и консоль не работала. Установил по новой. Это тоже было всё под эмуляцией и русский язык в консоли заработал. Потом после перезагрузки изменения в реестре исчезли и решил установить программу не под эмуляцией. Установил, только не работает. Вот этот код выводит крякозябры.
# -*- coding: utf-8 -*-
print «привет»
А раньше такой код показывал русский текст.



0



Рыжий Лис

Просто Лис

Эксперт Python

4830 / 3153 / 991

Регистрация: 17.05.2012

Сообщений: 9,201

Записей в блоге: 9

19.10.2019, 18:16

14

Попробуй сохранить файл в кодировке 866 (Документ -> Установить кодировку -> Восточно-европейская). И в файле тоже пропиши 866.

Добавлено через 55 секунд
Если питон второй, то лучше писать так:

Python
1
print u"привет"



1



supmener

-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

19.10.2019, 18:36

 [ТС]

15

Вот так или по другому:

Python
1
# -*- coding: windows-866 -*-



0



-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

22.11.2019, 17:33

 [ТС]

16

Не знаю, почему заработало. Вроде уже пробовал так раньше и не помогало. Сейчас ничего не менял, просто запустил, может какая то другая программа меняет настройки в системе.

Миниатюры

Среда разработки Geany
 



0



Просто Лис

Эксперт Python

4830 / 3153 / 991

Регистрация: 17.05.2012

Сообщений: 9,201

Записей в блоге: 9

22.11.2019, 17:35

17

Ты не там смотришь. Внизу в строке статуса у тебя написано utf-8.



1



-39 / 83 / 11

Регистрация: 26.06.2013

Сообщений: 4,178

02.12.2019, 13:41

 [ТС]

19

А что означают кнопки «Скомпилировать» и «Сборка»?



0



Просто Лис

Эксперт Python

4830 / 3153 / 991

Регистрация: 17.05.2012

Сообщений: 9,201

Записей в блоге: 9

02.12.2019, 14:48

20

Они просто запускают команды. Какие именно команды можно просмотреть в «Сборка» -> «Команды сборки». Для с++ там прописаны и правда компиляция в объектный файл и сборка бинарника.



1



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

02.12.2019, 14:48

Помогаю со студенческими работами здесь

среда разработки
господа!
случилось так, что в результате "зависона" компа слетели библиотеки Microsoft Visual C++…

Среда разработки
Есть ли какие-либо программы для разработки java приложений, включающие подсказки типо IntelliSence…

Среда разработки
Здраствуйте, подскажите где лучше писать С++, на какой программе?

среда разработки
Здравствуйте, объясните пожалуйста популярно как правильно установить среду разработки Eclipse и…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

20

Что означает это сообщение об ошибке? Что я могу сделать, чтобы исправить эту проблему?

AssemblyInfo.cs вышел с кодом 9009


Проблема, вероятно, происходит как часть этапа после сборки в .NET-решении в Visual Studio.

4b9b3361

Ответ 1

Вы пытались указать полный путь к команде, которая выполняется в команде события pre-or post-build event?

Я получал ошибку 9009 из-за команды xcopy post-build event в Visual Studio 2008.

Команда "xcopy.exe /Y C:projectpathproject.config C:compilepath" вышла с кодом 9009.

Но в моем случае это было также прерывистым. То есть сообщение об ошибке сохраняется до перезагрузки компьютера и исчезает после перезагрузки компьютера. Он вернулся после некоторой отдаленной проблемы, которую я еще не обнаружил.

Однако, в моем случае, при условии, что команда с полным пути решена, проблема:

c:windowssystem32xcopy.exe /Y C:projectpathproject.config C:compilepath 

Вместо просто:

xcopy.exe /Y C:projectpathproject.config C:compilepath

Если у меня нет полного пути, он запускается некоторое время после перезапуска, а затем останавливается.

Также, как упоминалось в комментариях к этому сообщению, , если есть пробелы в полном пути, вам нужно кавычки вокруг команды. Например.

"C:The folder with spacesABCDEFxcopy.exe" /Y C:projectpathproject.config C:compilepath

Обратите внимание, что этот пример в отношении пробелов не проверен.

Ответ 2

Код ошибки 9009 означает, что файл ошибки не найден. Все основные причины, изложенные в ответах здесь, являются хорошим источником, чтобы понять, почему, но сама ошибка просто означает плохой путь.

Ответ 3

Это происходит, когда вам не хватает некоторых параметров среды для использования инструментов Microsoft Visual Studio x86.
Поэтому попробуйте добавить в качестве первой команды на этапах после сборки:

Для Visual Studio 2010 используйте:

call "$(DevEnvDir)..Toolsvsvars32.bat"

Как уже упоминалось в комментариях @FlorianKoch, для VS 2017 используйте:

call "$(DevEnvDir)..ToolsVsDevCmd.bat"

Его следует поместить перед любой другой командой.
Он установит среду для использования инструментов Microsoft Visual Studio x86.

Ответ 4

Скорее всего, у вас есть место в результирующем пути.

Вы можете обойти это, указав пути, тем самым позволяя пробелы. Например:

xcopy "$(SolutionDir)Folder NameFile To Copy.ext" "$(TargetDir)" /R /Y /I

Ответ 5

Имела ту же переменную после изменения переменной PATH из переменных окружения в Win 7. Возвращение к умолчанию помогло.

Ответ 6

У меня была ошибка 9009, когда событие post post script пыталось запустить пакетный файл, который не существовал в указанном пути.

Ответ 7

Я вызвал эту ошибку, когда я отредактировал переменную окружения Path. После редактирования я случайно добавил Path= в начало строки пути. С такой измененной переменной пути мне не удалось запустить XCopy в командной строке (никакая команда или файл не найден), а Visual Studio отказалась запускать шаг после сборки, ссылаясь на ошибку с кодом 9009.

XCopy обычно находится в C:WindowsSystem32. Как только переменная окружения Path разрешила XCopy получить разрешение в приглашении DOS, Visual Studio хорошо построила мое решение.

Ответ 8

Если script на самом деле делает то, что ему нужно сделать, и просто Visual Studio выдает вам сообщение об ошибке, которую вы могли бы просто добавить:

exit 0

до конца script.

Ответ 9

Проверьте орфографию. Я пытался вызвать исполняемый файл, но имел имя с ошибкой и дал мне сообщение exited with code 9009.

Ответ 10

В моем случае перед вызовом команды мне пришлось сначала записать «CD» ( «Изменить каталог» ) в соответствующий каталог, поскольку исполняемый файл, который я вызывал, был в моей директории проектов.

Пример:

cd "$(SolutionDir)"
call "$(SolutionDir)build.bat"

Ответ 11

Моя точная ошибка была

The command "iscc /DConfigurationName=Debug "C:ProjectsBlahblahblahsetup.iss"" exited with code 9009.

9009 означает, что файл не найден, но на самом деле он не смог найти часть «iscc» команды.

Я исправил его, добавив ";C:Program FilesInno Setup 5 (x86)" в переменную системной среды "path"

Ответ 12

Другой вариант:

Сегодня я вызываю интерпретатор python из cron в win32 и беру ExitCode (% ERRORLEVEL%) 9009, потому что системная учетная запись, используемая cron, не имеет пути к каталогу Python.

Ответ 13

Проблема в моем случае возникла, когда я попытался использовать команду в командной строке для события Post-build в моей тестовой библиотеке классов. Когда вы используете такие кавычки:

"$(SolutionDir)packagesNUnit.Runners.2.6.2toolsnunit" "$(TargetPath)" 

или если вы используете консоль:

"$(SolutionDir)packagesNUnit.Runners.2.6.2toolsnunit-console" "$(TargetPath)"

Это исправило проблему для меня.

Ответ 14

Кроме того, убедитесь, что в окне редактирования событий post build в вашем проекте нет разрывов строк. Иногда копирование команды xcopy из сети, когда она многострочная и вставляет ее в VS, вызовет проблему.

Ответ 15

Я добавил » > myFile.txt» в конец строки на этапе предварительной сборки, а затем проверил файл на фактическую ошибку.

Ответ 16

Тфа ответ был отклонен, но на самом деле может вызвать эту проблему. Благодаря hanzolo я посмотрел в окне вывода и нашел следующее:

3>'gulp' is not recognized as an internal or external command,
3>operable program or batch file.
3>D:dev<filepath>Web.csproj(4,5): error MSB3073: The command "gulp clean" exited with code 9009.

После запуска npm install -g gulp я перестал получать эту ошибку. Если вы получаете эту ошибку в Visual Studio, проверьте окно вывода и посмотрите, является ли проблема неустановленной переменной среды.

Ответ 17

Для меня дисковое пространство было низким, и ожидается, что файлы, которые не могут быть записаны, будут представлены позже. В других ответах упоминались недостающие файлы (или неправильно названные/неправильные ссылки на файлы), но основной причиной было отсутствие дискового пространства.

Ответ 18

Еще один вариант файла не найден, из-за пробелов в пути. В моем случае в msbuild script. Мне нужно было использовать строки HTML и ampquot; в команде exec.

<!-- Needs quotes example with my Buildscript.msbuild file --> 
<Exec Command="&quot;$(MSBuildThisFileDirectory)wixwixscript.bat&quot; $(VersionNumber) $(VersionNumberShort)" 
    ContinueOnError="false" 
    IgnoreExitCode="false" 
    WorkingDirectory="$(MSBuildProjectDirectory)wix" />

Ответ 19

То же, что и другие ответы, в моем случае это было из-за недостающего файла. Чтобы узнать, что является отсутствующим файлом, вы можете перейти в окно вывода, и он сразу покажет вам, что пропало.

Чтобы открыть окно вывода в Visual Studio:

  • Ctrl + Alt + O
  • Вид > Выход

введите описание изображения здесь

Ответ 20

Я исправил это, просто перезапустив Visual Studio — я только что запустил dotnet tool install xxx в окне консоли, и VS еще не выбрал новые переменные среды и/или параметры пути, которые были изменены, поэтому быстрый перезапуск решил проблему.

Ответ 21

Это довольно просто, я столкнулся с этой проблемой и смущающе провалился.

Приложение использует аргументы командной строки, я удалил их, а затем добавил их обратно. Вдруг проект не смог построить.

Visual Studio → Свойства проекта → убедитесь, что вы используете вкладку «Отладка» (не вкладка «Build Events» ) → Аргументы командной строки

Я использовал текстовую область Post и Pre-build, которая была неправильной в этом случае.

Ответ 22

Для меня это произошло после обновления пакетов nuget от одной версии PostSharp до следующего в большом решении (проект ~ 80).
У меня есть ошибки компилятора для проектов, которые имеют команды в событиях PreBuild.

‘cmd’ не распознается как внутренняя или внешняя команда, операционная программа или командный файл.
C:Program Files (x86)MSBuild14.0binMicrosoft.Common.CurrentVersion.targets(1249,5): ошибка MSB3073: команда «cmd/c C:GitReposmainServiceInterfacesDEV.ConfigPreBuild.cmd ServiceInterfaces» вышел с кодом 9009.

Переменная PATH была испорчена слишком долго, с несколькими повторяющимися путями, связанными с PostSharp.Patterns.Diagnostics.
Когда я закрыл Visual Studio и снова открыл его, проблема была исправлена.

Ответ 23

Мое решение было просто: как вы пытались отключить его и снова? Поэтому я перезапустил компьютер, и проблема исчезла.

Ответ 24

Я также столкнулся с этой проблемой 9009, столкнувшись с ситуацией перезаписи.

В принципе, если файл уже существует и вы не указали переключатель /y (который автоматически перезаписывается), эта ошибка может возникнуть при запуске из сборки.

Ответ 25

На самом деле я заметил, что по какой-то причине переменная среды% windir% иногда стирается. То, что сработало для меня, было изменено на переменную среды windir на c:windows, перезапустить VS и что это. Таким образом, вы не можете изменять файлы решений.

Ответ 26

По крайней мере, в Visual Studio Ultimate 2013, версии 12.0.30723.00 Update 3, невозможно разделить оператор if/else с разрывом строки:

работы:

if '$(BuildingInsideVisualStudio)' == 'true' (echo local) else (echo server)

не работает:

if '$(BuildingInsideVisualStudio)' == 'true' (echo local) 
else (echo server)

Ответ 27

Еще одна причина:
Если ваше событие pre-build ссылается на другой путь к bin файлам, и вы видите эту ошибку при запуске msbuild, но не Visual Studio, тогда вам нужно вручную организовать проекты в файле *.sln(с текстовым редактором), чтобы проект нацелены на событие, которое создается перед проектом события. Другими словами, msbuild использует порядок, в котором проекты перечислены в файле *.sln, тогда как VS использует знания зависимостей проекта. Это произошло, когда инструмент, который создает базу данных, которая будет включена в wixproj, была указана после wixproj.

Ответ 28

Я думаю, что в моем случае были русские символы в пути (все проекты были в папке пользователя). Когда я помещал решение в другую папку (прямо на диск), все стало нормально.

Ответ 29

Мое решение состояло в том, чтобы создать копию файла и добавить шаг к заданию сборки, чтобы скопировать мой файл поверх оригинала.

Ответ 30

Для меня это была перезагрузка Visual Studio.
У меня была построена gulp с кодом 9009.
Я установил gulp, но это не отразилось, пока я не перезапустил Visual Studio.

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

· 32 comments


Closed

Couldn’t launch python, exit code 9009

#1423

tieguyny opened this issue

Oct 1, 2022

· 32 comments

Comments

@tieguyny

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.

@dove-zp

@tieguyny

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.

@stonelessalto

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 Vind0ld reacted with thumbs up emoji

@RoninGameDev

I also added it to the path and I am still getting the 9009 error

@jamesfischer8

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!

@Atamanee

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 same problem, also use this worked for me, thanks!

@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?

@luasych

@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

@kpz71

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

@ReticentAdjutant

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.

@tiancailin

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

@EzeRantica

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.

@AdamHardix

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.

@Khronos88

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

@tim2k121

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.

@OGBack2Life

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.

@tim2k121

That did not work dor me, sadly

@Vind0ld

@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 :(

@luasych

@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 :(

It depends on where you installed Python, change the path according to where it is installed

@Vind0ld

@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 :(

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.

@luasych

@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 :(

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.

@Vind0ld

@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 :(

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.

@luasych

@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 :(

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

@Vind0ld

@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 :(

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…

@luasych

@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 :(

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.

@Vind0ld

@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 :(

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

@luasych

@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 :(

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

@Vind0ld

@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 :(

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

@luasych

@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 :(

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

@Vind0ld

@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 :(

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

@luasych

@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 :(

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

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

@Vind0ld

@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 :(

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

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

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Geany как изменить тему
  • Gds 1011 an error occurred while commit process in progress
  • Gdmss ошибка подключения
  • Gdiplus dll как исправить ошибку
  • Gdi32full dll windows 10 ошибка

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии