簡體   English   中英

使用conda克隆環境時發生異常

[英]Exception while cloning environment with conda

從Anaconda2-2.5.0-MacOSX-x86_64和conda update conda安裝適用於python2的anaconda之后, conda update conda以便

$ conda --version
conda 4.0.0

我正在試駕 ,偶然發現

$ 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$

我究竟做錯了什么?

你沒做錯什么

這是在github問題跟蹤器上報告的一個錯誤: https : //github.com/conda/conda/issues/2178

根據評論,此錯誤將很快修復。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM