RuntimeError:此命令在脱机模式下使用远程连接。[CondaError]

时间:2018-04-12 08:16:25

标签: python-2.7 anaconda conda

当我将环境创建为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

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

1 个答案:

答案 0 :(得分:1)

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

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

另外,您必须查看此版本的UPDATE以在您的shel中启用conda: