使用conda克隆环境时出现异常

时间:2016-03-05 02:35:30

标签: python macos anaconda

从Anaconda2-2.5.0-MacOSX-x86_64和conda update conda安装anaconda for python2之后

$ conda --version
conda 4.0.0

我正在通过test drive并偶然发现

$ conda create --name flowers --clone snowflakes

因为这样失败了:

Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ....
src_prefix: '/Users/flaschbier/anaconda/envs/snowflakes'
dst_prefix: '/Users/flaschbier/anaconda/envs/flowers'
Packages: 12
Files: 0
An unexpected error has occurred, please consider sending the
following traceback to the conda GitHub issue tracker at:

    https://github.com/conda/conda/issues

Include the output of the command 'conda info' in your report.


Traceback (most recent call last):
  File "/Users/flaschbier/anaconda/bin/conda", line 6, in <module>
    sys.exit(main())
  File "/Users/flaschbier/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 139, in main
    args_func(args, p)
  File "/Users/flaschbier/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 146, in args_func
    args.func(args, p)
  File "/Users/flaschbier/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 49, in execute
    install.install(args, parser, 'create')
  File "/Users/flaschbier/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 247, in install
    clone(args.clone, prefix, json=args.json, quiet=args.quiet, index=index)
  File "/Users/flaschbier/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 84, in clone
    quiet=quiet, index=index)
  File "/Users/flaschbier/anaconda/lib/python2.7/site-packages/conda/misc.py", line 243, in clone_env
    sorted_dists = r.dependency_sort(dists)
  File "/Users/flaschbier/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 716, in dependency_sort
    for key, value in iteritems(must_have):
  File "/Users/flaschbier/anaconda/lib/python2.7/site-packages/conda/compat.py", line 157, in iteritems
    return iter(getattr(d, _iteritems)())
AttributeError: 'list' object has no attribute 'iteritems'
(bunnies)yosi:anaconda flaschbier$

我做错了什么?

1 个答案:

答案 0 :(得分:1)

你没有做错什么

这是github问题跟踪器上报告的错误: https://github.com/conda/conda/issues/2178

根据评论,这个错误很快就会修复。