gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 16:51:28 48 4
gpt4 key购买 nike

从 Anaconda2-2.5.0-MacOSX-x86_64 安装 anaconda for python2 并 conda update conda 后,

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

我做错了什么?

最佳答案

你没有做错任何事

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

根据评论,此错误将很快得到修复。

关于python - 使用 conda 克隆环境时出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35809307/

48 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com