【问题标题】:RuntimeError:This command is using a remote connection in offline mode.[CondaError]RuntimeError:此命令在离线模式下使用远程连接。[CondaError]
【发布时间】:2018-04-12 08:16:25
【问题描述】:

当我在 conda 中创建环境时,我在 Proceed 响应之后收到此错误:

[root@MyServer]#conda create -n py26 python=2.6 anaconda --offline

Fetching package metadata .........
Solving package specifications: ..............
......................
....
...
Proceed ([y]/n)? y


CondaError: RuntimeError(u'EnforceUnusedAdapter called with url https://repo.continuum.io/pkgs/free/linux-64/jpeg-8d-0.tar.bz2\nThis command is using a remote connection in offline mode.\n',)
CondaError: RuntimeError(u'EnforceUnusedAdapter called with url https://repo.continuum.io/pkgs/free/linux-64/jpeg-8d-0.tar.bz2\nThis command is using a remote connection in offline mode.\n',)
CondaError: RuntimeError(u'EnforceUnusedAdapter called with url https://repo.continuum.io/pkgs/free/linux-64/jpeg-8d-0.tar.bz2\nThis command is using a remote connection in offline mode.\n',)

即使我可以看到我的环境已成功创建:

[root@MyServer]# conda env list
# conda environments:
#
py26                     /opt/Anaconda/Anaconda2-4.4.0/envs/py26
py27                     /opt/Anaconda/Anaconda2-4.4.0/envs/py27
root                  *  /opt/Anaconda/Anaconda2-4.4.0

是我创建的错误影响环境吗?

【问题讨论】:

    标签: python-2.7 anaconda conda


    【解决方案1】:

    经过几个小时的搜索,我发现这个问题来自于 Conda 版本的一个错误4.3.x:Github

    要解决此问题,您必须安装 Conda 4.4.x

    另外,您必须查看此版本上的 UPDATE 才能在您的 shell 中启用 conda:

    【讨论】:

    • 更新链接已损坏。 :-(
    猜你喜欢
    • 2010-11-06
    • 2014-03-02
    • 2015-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-19
    • 2015-12-25
    相关资源
    最近更新 更多