python

[python] pip의 프록시 설정 방법

hs_seo 2020. 6. 11. 23:00

프록시가 필요한 환경에서 pip를 설정할 때 proxy, tursted-host를 설정해야 합니다.

# pip로 xgboost 설치
pip --proxy http://{proxy-ip}:{proxy-port} --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org install xgboost
반응형