anaconda 在内网中代理配置

修改anaconda的配置文件,位置在c:User(或“用户”)current_user(当前用户).condarc,将以下内容拷贝进去, 替换原有内容, 修改 http://proxy.yourorg.org:port 为本地的代理地址

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

另外,如果是pip的话,只需要在安装包的时候用如下格式(比如tensorflow):

  pip --proxy=http://username:password@proxyURL:portNumber install tensorflow
原文地址:https://www.cnblogs.com/scarecrow-blog/p/9797164.html