이상하게 설치하는데 오류가 계속 생겨서 오류 도장깨기 성공한 방법들을 공유하려 합니다.
다른 오류 해결 방법은 저도 모릅니다.
에러 1
ERROR: Could not find a version that satisfies the requirement torch==2.1.2 (from versions: 2.2.0, 2.2.0+cu121, 2.2.1, 2.2.1+cu121, 2.2.2, 2.2.2+cu121)
ERROR: No matching distribution found for torch==2.1.2
오류 발생 시점 : webui-user.bat 실행 하고 파일들을 다운받기 전
해결 방법 : git clone해서 설치하지 않고
https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre
이 주소의 sd.webui.zip 파일을 다운받아 update.bat → run.bat 로 문제 해결
에러 2
Traceback (most recent call last): File "C:\Users\dpcks\Downloads\sd.webui\webui\launch.py", line 48, in <module> main() File "C:\Users\dpcks\Downloads\sd.webui\webui\launch.py", line 39, in main prepare_environment() File "C:\Users\dpcks\Downloads\sd.webui\webui\modules\launch_utils.py", line 380, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "C:\Users\dpcks\Downloads\sd.webui\webui\modules\launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install torch.
오류 발생 시점 : 에러 1을 해결한 뒤 run.bat으로 파일을 다운 받던 도중
해결 방법 : https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13236#issuecomment-1720488539
cd stable-diffusion-webui && source venv/bin/activate
pip3 install httpx==0.24.1
여기서 알려준 방법대로 했습니다.
그런데 첫줄 코드는 에러가 나서 패스하고 pip3 install만 했더니 해결
에러 2를 해결하고 난 뒤 몇초 후에 모든 파일을 다 받고 자동으로 stable diffusion 웹 페이지 열림
에러 3 (번외)
import email.message
File "email\message.py", line 15, in <module>
File "email\utils.py", line 29, in <module>
File "socket.py", line 51, in <module>
ModuleNotFoundError: No module named '_socket'
오류 발생 시점 : 실수로 삭제해서 재설치 하던 도중
해결 방법 : https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs#windows-method-2
Install and Run on NVidia GPUs
Stable Diffusion web UI. Contribute to AUTOMATIC1111/stable-diffusion-webui development by creating an account on GitHub.
github.com
Windows (method 2) 에서 알려준대로 했더니 해결(깃헙 이슈들을 찾아보니 이게 효과적이라는 글을봄)
이후 재실행할 때 run.bat이 아닌 webui/webui-user.bat 을 실행해야 정상적으로 sd가 켜짐
'잡지식' 카테고리의 다른 글
42서울 본과정 후기 (0) | 2024.10.11 |
---|---|
Visual Studio BOM 없이 파일 저장하는법 (0) | 2024.08.14 |
Visual studio 메모리 릭 확인하기 (0) | 2024.08.07 |
Visual Studio 라이브러리 프로젝트 참조 (C/C++) (0) | 2024.07.22 |
스테이블 디퓨전 설치 방법 (깃 클론 X) (0) | 2024.05.06 |