打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
anaconda 在内网中代理配置

C:\Users\<username>\

找到.condarc文件

修改内容为:

  1. channels:
  2. - defaults
  3. # Show channel URLs when displaying what is going to be downloaded and
  4. # in 'conda list'. The default is False.
  5. show_channel_urls: True
  6. allow_other_channels: True
  7. proxy_servers:
  8. http: http://proxy.yourorg.org:port
  9. https: http://proxy.yourorg.org:port
  10. ssl_verify: False

加了清华镜像后我的文件内容为:

  1. channels:
  2.   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  3.   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  4.   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  5.   - defaults
  6. show_channel_urls: True
  7. allow_other_channels: True
  8. proxy_servers:
  9.     http: http://proxy.tencent.com:8080
  10.     https: http://proxy.tencent.com:8080
  11. ssl_verify: False

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

        pip --proxy=http://username:password@proxyURL:portNumber install tensorflow

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Anaconda出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url的解决方法
生信分析平台搭建(七):bioconda
宏基因组分析专题(2):生物信息学软件的应用市场-Conda的安装流程
服务器被关机,不妨试试看用你的Mac电脑跑NGS流程
conda命令那点事
python之环境切换问题实践总结_python 切换环境
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服