午夜稻草人

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

修改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

 

posted on 2018-10-16 11:56  午夜稻草人  阅读(903)  评论(0编辑  收藏  举报