anaconda 在内网中代理配置
Posted scarecrow-blog
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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:[email protected]:portNumber install tensorflow
以上是关于anaconda 在内网中代理配置的主要内容,如果未能解决你的问题,请参考以下文章