在 Windows 上通过 .condarc 文件设置 Python Anaconda 代理 [英] Python Anaconda Proxy Setup via .condarc file on Windows
本文介绍了在 Windows 上通过 .condarc 文件设置 Python Anaconda 代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Windows 7 机器上通过代理安装 Anaconda 时遇到问题.如何使用代理?
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:Usersusername
文件夹中创建一个 .condarc 文件.
I had to create a .condarc file at the C:Usersusername
folder.
如果上面的文件夹不存在,请使用复制 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屋!
查看全文