【问题标题】:How to solve an error that appears in conda proxy configuration?如何解决 conda 代理配置中出现的错误?
【发布时间】:2020-03-06 22:35:26
【问题描述】:

我正在尝试在 ubuntu 上安装 Rdkit,但 conda 配置有问题。

我已经在我的桌面上重新安装了 anaconda3 和 python3 版本并从头开始安装。

当我运行命令时:conda create -c rdkit -n my-rdkit-env rdkit

我遇到的错误是这个:

Collecting package metadata (current_repodata.json): failed

ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy
configuration settings.

有人知道如何解决这个问题,以便我可以安装名为 Rdkit 的程序吗?

【问题讨论】:

  • 您的主目录中是否有包含任何代理设置的.condarc?您是否设置了HTTP_PROXY 和或HTTPS_PROXY?您甚至需要设置代理服务器吗?

标签: python conda rdkit


【解决方案1】:

您好,我遇到了同样的错误。

在我的情况下,我在计算机的环境变量中拥有

     HTTP_PROXY = value... 
     HTTPS_PROXY

在我的情况下,我不需要它,我只是删除了它们并且它起作用了。

【讨论】:

    【解决方案2】:

    我的工作机器上出现了类似的错误。我在 Windows 10 上。

    对我来说,解决方法是将*.anaconda.org 添加到我的控制面板 > Internet 选项 > 连接 下的代理例外列表中局域网设置 > 高级

    希望这会有所帮助。

    【讨论】:

      【解决方案3】:

      您可以改用pip。就我而言,使用pip 以某种方式修复了conda 的此错误。

      【讨论】:

        【解决方案4】:

        我今天在 Linux 18.04 上遇到了同样的问题。我通过在导出$http_proxy$https_proxy 时添加我的用户名和密码来解决它

        这是一个命令结构:

        $ export http_proxy=http://username:password@proxy:port
        $ export https_proxy=https://username:password@proxy:port
        

        如果您的密码中包含!@#$%等特殊字符,请务必将其输入为Flash代码。例如#->%23, @->%40。您可以搜索它以获取更多符号。

        我还从主目录中删除了.condarc 文件。

        希望这对你有用。

        【讨论】:

        • 嗨,我现在面临同样的问题。早些时候它曾经工作过。但现在我得到了上述错误。我的代理存储在 ~/.bash_profile 而不是 .condarc。我猜更新系统后,它已经停止工作了
        【解决方案5】:

        我在 Linux 操作系统上遇到了同样的错误。

        解决方案- 为了修复错误,我已将 ( *.anaconda.com ) 添加到代理例外列表中。

        【讨论】:

          猜你喜欢
          • 2021-06-04
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-01-26
          • 2019-02-18
          • 1970-01-01
          • 2017-10-06
          相关资源
          最近更新 更多