如何为Anaconda创建.condarc文件? [英] how to create a .condarc file for Anaconda?
问题描述
我正在尝试在Anaconda中设置代理服务器,因为我的防火墙不允许我运行在线命令,例如
I am trying to set up a proxy server in Anaconda because my firewall does not allow me to run online commands such as
conda更新
conda update
我在网上看到我应该创建一个包含代理地址的 .condarc 文件.不幸的是
I see online that I should create a .condarc file that contains the proxy address. Unfortunately,
-
我不知道如何创建该文件(它是文本文件吗?)
I dont know how to create that file (is it a text file?)
以及放在哪里?! (在哪个文件夹中?在Anaconda文件夹中?)
and where to put it?! (in which folder? in the Anaconda folder?)
任何帮助表示赞赏 谢谢!
Any help appreciated Thanks!
推荐答案
这是一个文本(YAML)文件,位于主目录或anaconda安装的根目录中.
It is a text (YAML) file that goes in the home directory, or optionally, the root of the anaconda installation.
内容应该像
# Proxy settings: http://[username]:[password]@[server]:[port]
proxy_servers:
http: http://user:pass@corp.com:8080
https: https://user:pass@corp.com:8080
请参见 http://conda.pydata.org/docs/config.html 欲获得更多信息.
See http://conda.pydata.org/docs/config.html for more information.
这篇关于如何为Anaconda创建.condarc文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!