在Conda中取消设置代理

时间:2019-06-12 16:45:36

标签: python python-3.x anaconda conda

我知道我们可以使用以下命令在conda中设置代理

conda config --set proxy_servers.http  <proxy>
conda config --set proxy_servers.https  <proxy>

但是如何取消设置这些代理服务器?

谢谢

1 个答案:

答案 0 :(得分:1)

遵循conda config的文档:

Config Modifiers:
  --get [KEY [KEY ...]]
                        Get a configuration value.
  --append KEY VALUE    Add one configuration value to the end of a list key.
  --prepend KEY VALUE, --add KEY VALUE
                        Add one configuration value to the beginning of a list
                        key.
  --set KEY VALUE       Set a boolean or string key
  --remove KEY VALUE    Remove a configuration value from a list key. This
                        removes all instances of the value.
  --remove-key KEY      Remove a configuration key (and all its values).
  --stdin               Apply configuration information given in yaml format
                        piped through stdin.

所以

conda config --remove-key proxy_servers.http
conda config --remove-key proxy_servers.https

应该可以解决问题!

相关问题