克隆Anaconda基本环境时出现AssertionError

时间:2018-07-25 19:53:21

标签: windows python-3.x anaconda

我正在尝试为特定的应用程序创建基本anaconda环境的副本。我想将克隆用作安装特定于应用程序的软件包的基础。我使用以下命令启动克隆:

C:\Users\Liam>conda create -n retrievals --clone base

它在克隆过程中走了很长一段路,并且在克隆anaconda-5.2.0时达到了100%,当它把声明错误扔到下面时:

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "C:\Users\Liam\Anaconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
    return func(*args, **kwargs)
  File "C:\Users\Liam\Anaconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
    exit_code = do_call(args, p)
  File "C:\Users\Liam\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
    exit_code = getattr(module, func_name)(args, parser)
  File "C:\Users\Liam\Anaconda3\lib\site-packages\conda\cli\main_create.py", line 11, in execute
    install(args, parser, 'create')
  File "C:\Users\Liam\Anaconda3\lib\site-packages\conda\cli\install.py", line 211, in install
    clone(args.clone, prefix, json=context.json, quiet=context.quiet, index_args=index_args)
  File "C:\Users\Liam\Anaconda3\lib\site-packages\conda\cli\install.py", line 72, in clone
    index_args=index_args)
  File "C:\Users\Liam\Anaconda3\lib\site-packages\conda\misc.py", line 277, in clone_env
    force_extract=False, index_args=index_args)
  File "C:\Users\Liam\Anaconda3\lib\site-packages\conda\misc.py", line 78, in explicit
    assert not any(spec_pcrec[1] is None for spec_pcrec in specs_pcrecs)
AssertionError

$ C:\Users\Liam\Anaconda3\Scripts\conda create -n retrievals --clone base

任何人都可以解释为什么会发生这种情况以及我可以尝试如何解决吗?

P.S。如果有帮助,我会在Windows 10上执行此操作。

0 个答案:

没有答案