Running conda with proxy

前端 未结 6 1868
迷失自我
迷失自我 2020-12-02 10:47

I\'m using Anaconda 2.7 on windows, and my internet connection uses a proxy.

Previously, when using python 2.7 (Not Anaconda), I installed package like this:

6条回答
  •  甜味超标
    2020-12-02 11:00

    One mistake I was making was saving the file as a.condarc or b.condarc.

    Save it only as .condarc and paste the following code in the file and save the file in your home directory. Make necessary changes to hostname, user etc.

    channels:
    - defaults
    
    show_channel_urls: True
    allow_other_channels: True
    
    proxy_servers:
        http: http://user:pass@hostname:port
        https: http://user:pass@hostname:port
    
    
    ssl_verify: False
    

提交回复
热议问题