Windows上通过.condarc文件的Python Anaconda代理设置 [英] Python Anaconda Proxy Setup via .condarc file on Windows
本文介绍了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:
andhttp://...
- 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屋!
查看全文