miniconda with Proxy

Published onesixx on

https://driz2le.tistory.com/274

miniconda의 conda 환경에서 패키지들을 설치할 경우,
rStudio환경에서 설치가 안되는 경우 proxy 설정을 활용하여 해결

###  rStudio Terminal 
(base) oschung_skcc@cf1d8cf6e830:~/RCODE/CNN$ conda update conda
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url 
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

'https://repo.anaconda.com/pkgs/main/linux-64'

### R
> install_keras(method="conda", tensorflow="gpu")
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url 
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

'https://repo.anaconda.com/pkgs/main/linux-64'
Error: installation of 'python=3.6' into environment '/home/oschung_skcc/.local/share/r-minicond

conda configuration file 생성

$ conda config --set ssl_verify false

home directory(~/) 밑에 새로운 .condarc 파일생성

cond configuration file 설정

> file.edit('~/.condarc')
ssl_verify: false
proxy_servers:
  http: http://10.16.16.16:1616
  https: https://10.16.16.16:1616

설치확인

$ conda info
(sixxDL) oschung_skcc@cf1d8cf6e830:~$ conda info

     active environment : sixxDL
    active env location : /home/oschung_skcc/.local/share/r-miniconda/envs/sixxDL
            shell level : 2
       user config file : /home/oschung_skcc/.condarc
 populated config files : /home/oschung_skcc/.condarc
          conda version : 4.8.5
    conda-build version : not installed
         python version : 3.8.3.final.0
       virtual packages : __cuda=10.1
                          __glibc=2.27
       base environment : /home/oschung_skcc/.local/share/r-miniconda  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/oschung_skcc/.local/share/r-miniconda/pkgs
                          /home/oschung_skcc/.conda/pkgs
       envs directories : /home/oschung_skcc/.local/share/r-miniconda/envs
                          /home/oschung_skcc/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.5 requests/2.24.0 CPython/3.8.3 Linux/3.10.0-1062.18.1.el7.x86_64 ubuntu/18.04.4 glibc/2.27
                UID:GID : 1001:1001
             netrc file : None
           offline mode : False

.Renviron 설정

> file.edit('~/.Renviron')
http_proxy=http://10.16.16.16:1616
https_proxy=https://10.16.16.16:1616
Categories: Keras

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x