카테고리 없음

[파이썬]환경설정 pip SSL certificate

문베디드 2020. 12. 8. 10:09

파이썬 모듈로 jupyter notebook, pandas, matplotlib 을 설치하려고 하였는데

회사 인터넷이라 인증서 문제가 발생하였습니다. (자세한 이유는 몰라요..)

아무래도 신뢰가능한 웹사이트에서만 다운로드 받을 수 있도록 인증서 검사를 하는것 같아요.

 

그 해결법은 출처의 블로그에서 찾았습니다.

 

pip --trusted-host pypi.org --trusted-host files.pythonhosted.org install 라이브러리명

예) pip --trusted-host pypi.org --trusted-host files.pythonhosted.org install matplotlib pandas (라이브러리명)

 

--는 옵션이기때문에 순서가 상관없다. 다음과 같이도 동작합니다.

예2) pip install matplotlib pandas (라이브러리명) --trusted-host pypi.org --trusted-host files.pythonhosted.org 

 

 

출처: https://harryp.tistory.com/831 [Park's Life]