pip의 경우 파라메터를 주는 방식으로 proxy를 설정한다.
$ pip install --proxy http://proxy.server:port 패키지명
e.g.)
# proxy 서버를 이용해서 jupyter notebook을 설치한다.
$ pip install --proxy http://10.10.10.5:8080 jupyter
pip --proxy 경로를 주어도 sslVerify (Retrying ... connection.VerifiedHTTPSConnection ...) 오류가 발생하면 하기와 같이 trust-host 옵션을 추가한다.
$ pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --proxy 프록시서버IP:포트 [ 패키지명]
e.g.)
$ pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --proxy 10.10.10.10:8080 numpy
반응형
'Linux > Proxy' 카테고리의 다른 글
Proxy setting, jupyter notebook (0) | 2020.02.06 |
---|---|
Proxy setting, conda (Windows) (0) | 2019.12.08 |
Proxy setting, conda (ubuntu 18.04) (0) | 2019.11.08 |
Proxy setting, docker (ubuntu 18.04) (0) | 2019.11.08 |
Proxy setting, apt-get (ubuntu 18.04) (0) | 2019.11.08 |