C:\Users\home>python -m pip install --upgrade pip

Requirement already satisfied: pip in c:\users\home\appdata\local\programs\python\python310\lib\site-packages (22.2.2)

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', InvalidURL("URL can't contain control characters. ' ' (found at least ' ')"))': /simple/pip/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', InvalidURL("URL can't contain control characters. ' ' (found at least ' ')"))': /simple/pip/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', InvalidURL("URL can't contain control characters. ' ' (found at least ' ')"))': /simple/pip/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', InvalidURL("URL can't contain control characters. ' ' (found at least ' ')"))': /simple/pip/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', InvalidURL("URL can't contain control characters. ' ' (found at least ' ')"))': /simple/pip/

WARNING: There was an error checking the latest version of pip.


RuntimeError: Couldn't install requirements for Web UI. Command: "D:\WEBUI 0.16\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install -r requirements_versions.txt --prefer-binary Error code: 1 stdout: Requirement already satisfied: transformers==4.19.2 in d:\webui 0.16\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 1)) (4.19.2) Requirement already satisfied: diffusers==0.3.0 in d:\webui 0.16\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 2)) (0.3.0) Requirement already satisfied: basicsr==1.4.2 in d:\webui 0.16\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 3)) (1.4.2) Requirement already satisfied: gfpgan==1.3.8 in d:\webui 0.16\stable-diffusion-webui\venv\lib\site-packages (from -r requirements_versions.txt (line 4)) (1.3.8)


  ERROR: No matching distribution found for gradio==3.4.1 


이런 오류 발생한 거 구글링을 통해 해결 방법을 찾아내고 Cmd를 통한 다운로드도 성공함

방법은 매우 간단함

Window 설정/네트워크 및 인터넷/프록시로 가면 자동으로 설정 검색이 켜져 있을 거임

이것을 끄셈

그러면 계속 저지랄나면서 다운 안되는 오류 단번에 해결됨

다운 다 받았으면 다시 프록시 자동검색 되돌리면 됨


근데 이래도 안되면 혹시나 하는데 이거 cmd 통해서 추가해보셈

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip setuptools 

결정적으로 정보 찾은 웹페이지는

https://stackoverflow.com/questions/46942585/pip-error-oserror-errno-22-invalid-argument

https://melonicedlatte.com/2020/08/12/082300.html

여기 두곳임


아래는 해결되고 정상 작동되는 모습