Python

pip 설치시, SSL 오류

Kyle79 2022. 4. 2. 17:56

 

ex) pip3 install pandas --trusted-host pypi.org --trusted-host files.pythonhosted.org

 

- 환경설정

OS 맞는 특정 경로에 config 파일을 생성하면 매번 입력할 필요 없이 pip install 만 해도 된다

경로:

    1) 맥 OS : $HOME/.config/pip/pip.conf

    2) 윈도우 :  %APPDATA%\pip\pip.ini

파일 내용:

[global]
trusted-host = pypi.org
               files.pythonhosted.org

 

 

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/user_guide/#config-file

 

User Guide - pip documentation v22.0.4

python -m pip python -m pip executes pip using the Python interpreter you specified as python. So /usr/bin/python3.7 -m pip means you are executing pip for your interpreter located at /usr/bin/python3.7. py -m pip py -m pip executes pip using the latest Py

pip.pypa.io

 

'Python' 카테고리의 다른 글

Selenium Chrome Option  (0) 2022.12.11
ChromeDriver & Selenium Wire setting  (0) 2022.12.11
PynamoDB  (0) 2021.11.10
Python Proxy  (0) 2021.11.03
Instaloader  (0) 2021.09.21