Windows上通过.condarc文件的Python Anaconda代理设置 [英] Python Anaconda Proxy Setup via .condarc file on Windows

查看:1331
本文介绍了Windows上通过.condarc文件的Python Anaconda代理设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过Windows 7计算机上的Anaconda安装conda的代理.如何使用代理?

I am having trouble going through a proxy for Anaconda install conda on a Windows 7 machine. How do I use a proxy?

http://conda.pydata.org/docs/config.html

以上链接已损坏,请改用此链接

推荐答案

我必须在C:\Users\username文件夹中创建一个.condarc文件.

I had to create a .condarc file at the C:\Users\username folder.

如果copy con .condarc文件在上面的文件夹中不存在,请使用.

Use copy con .condarc file if it does not exist at folder above.

文件内容为:

proxy_servers:
    http: http://username:password@corp.com:8080
    https: https://username:password@corp.com:8080

两个注意事项:

  • 请勿使用制表符,http:http://...
  • 之间必须有空格
  • 您可能没有代理的用户名和密码.省略username:password部分,它仍然可以工作
  • Do not use tabs, there must be space between http: and http://...
  • You might not have a username and password for the proxy. Leave out the username:password part and it will still work

这篇关于Windows上通过.condarc文件的Python Anaconda代理设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆