How to make Anaconda work behind HTTP proxy (not https)?

前端 未结 7 2073
攒了一身酷
攒了一身酷 2020-12-14 18:42

I\'m having trouble working with Anaconda behind a proxy at work.

When I have have the following environment variables:

http_proxy: http://domain\\us         


        
7条回答
  •  鱼传尺愫
    2020-12-14 19:18

    you need to create a .condarc file in you Windows user area:

    C:\Users\\
    

    The file should contain:

    channels:
    - defaults
    
    # Show channel URLs when displaying what is going to be downloaded and
    # in 'conda list'. The default is False.
    show_channel_urls: True
    allow_other_channels: True
    
    proxy_servers:
        http: http://proxy.yourorg.org:port
        https: http://proxy.yourorg.org:port
    
    
    ssl_verify: False
    

提交回复
热议问题