๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Python/pip

[Python] pip, pipenv install SSLError

๋ฐ˜์‘ํ˜•

 

pip install ์‹œ SSLError ๋ฐœ์ƒ

D:\>pip install pillow
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/pillow/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/pillow/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/pillow/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/pillow/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))': /simple/pillow/
Could not fetch URL https://pypi.org/simple/pillow/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pillow/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))) - skipping
ERROR: Could not find a version that satisfies the requirement pillow (from versions: none)
ERROR: No matching distribution found for pillow

 

 

1. --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org ๋ฅผ ๋ถ™์—ฌ์„œ install

pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org numpy

 

2. pip.ini ํŒŒ์ผ ์ƒ์„ฑ

 

  • pip.ini
[global]
trusted-host = pypi.python.org
               pypi.org
               files.pythonhosted.org

 

  • ์•„๋ž˜์—์„œ ํ•ด๋‹น๋˜๋Š” ๊ฒฝ๋กœ์— pip.ini ํŒŒ์ผ ์ƒ์„ฑ
    • D:\anaconda3\Lib\site-packages\pip
    • python ๊ฒฝ๋กœ (D:\Programs\Python\Python310)
      • or C:\Users\{๊ณ„์ •๋ช…}\AppData\Roaming\pip ํด๋”์— pip.ini ์ƒ์„ฑ
    • pipenv ์‚ฌ์šฉ์‹œ ๊ฐ€์ƒํ™˜๊ฒฝ ํด๋” ์•ˆ์— ์ƒ์„ฑ C:\Users\{๊ณ„์ •๋ช…}\.virtualenvs\cxvsdfa
      1. Locking Failed! ๋„ ์˜ค๋ฅ˜๊ฐ€........

 

 

https://curryyou.tistory.com/179

 

[ํŒŒ์ด์ฌ] pip ์„ค์น˜ SSLError ์˜ค๋ฅ˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•: SSLCertVerificationError [SSL: CERTIFICATE_VERIFY_FAILED]

ํšŒ์‚ฌ ์ปดํ“จํ„ฐ๋‚˜ ์‚ฌ๋‚ด๋ง ๋“ฑ์˜ ํ™˜๊ฒฝ์—์„œ pip๋กœ ํŒŒ์ด์ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์„ค์น˜ํ•˜๋ฉด, ์•„๋ž˜์™€ ๊ฐ™์ด SSL๊ด€๋ จ ์—๋Ÿฌ๊ฐ€ ๋œฐ ๋•Œ๊ฐ€ ์žˆ๋‹ค. (๋ฐฉํ™”๋ฒฝ/ํ”„๋ก์‹œ ๋“ฑ์˜ ์ด์Šˆ๋กœ, ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ๊ฐ„๋‹จํ•˜๋‹ค) pip install requests <ํ„ฐ๋ฏธ

curryyou.tistory.com

 

 

https://pip.pypa.io/en/stable/topics/configuration/#config-file

 

Configuration - pip documentation v22.2.2

Previous Caching

pip.pypa.io

 

 

https://better-than-alone.tistory.com/42

 

python pip install ๋ฌธ์ œ ํ•ด๊ฒฐ (sslerror httpsconnectionpool(host='files.pythonhosted.org' port=443) : --trusted-host

google or tool ํŒŒ์ด์ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜ํ•˜๋ ค๊ณ  pip install ortools ํ–ˆ๋”๋‹ˆ ์—๋Ÿฌ ๋ฐœ์ƒ . ์—๋Ÿฌ๋ฉ”์„ธ์ง€ : ~~SSLError: HTTPSConnectionPool(host='files.pythonhosted.org',port=443): Max retries exceed with url:..

better-than-alone.tistory.com

 

 

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

 

pip package install SSL ์ธ์ฆ์„œ Error ํ•ด๊ฒฐ (error: [SSL: CERTIFICATE_VERIFY_FAILED]) - Easy is Perfect

1. ์ฆ์ƒ ๋ฐ ์›์ธ pip๋ฅผ ์ด์šฉํ•˜์—ฌ ์›ํ•˜๋Š” ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ•˜๋ฉด, ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ฃผ๋กœ ์ธํŠธ๋ผ๋„ท์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฌธ์ œ๊ฐ€ ๋งŽ์ด ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์€

melonicedlatte.com

 

https://4lugin.tistory.com/53

 

[ํŒŒ์ด์ฌ3] pip install ์‹คํ–‰์‹œ SSL ์—๋Ÿฌ๋ฐœ์ƒ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

Definition ์œˆ๋„์šฐ๋‚˜ ๋ฆฌ๋ˆ…์Šค์—์„œ pip install ์‹คํ–‰์‹œ SSL ์—๋Ÿฌ๋ฐœ์ƒ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• Solution Windows 1. pip.ini ํŒŒ์ผ ์ƒ์„ฑ C:\Users\{๊ณ„์ •๋ช…}\AppData\Roaming\pip\pip.ini --> AppData\Roaming์€ ์ˆจ๊น€ํด๋”๋กœ ๋˜์–ด ์žˆ์Œ..

4lugin.tistory.com

 

๋ฐ˜์‘ํ˜•