我在Anaconda上升级和安装软件包时遇到问题。
似乎尝试install
或upgrade
软件包失败。但是更新conda
和anaconda-navigator
也是如此。
我找到的大多数在线帮助中,推荐的第一步是更新conda
,但我什至不能这样做。
我尝试通过Anaconda Prompt以管理员身份运行命令,但没有成功。
错误是RecursionError
文件追溯到_build_components
文件中的第365行:
return frozendict(_make(key, value) for key, value in iteritems(kwargs))
我的conda版本是4.4.10,conda-build版本是3.4.1,python版本是3.6.4.final.0
我看过following question,但问题不一样。
一个答案或关于我可能在哪里找到答案的任何方向都很好!
这是我重新格式化的整个日志输出:
'command': 'C://Users//Sorade//Anaconda3//Scripts//conda install --yes --json --force-pscheck --prefix C://Users//Sorade//Anaconda3 anaconda-navigator==1.9.6',
'conda_info': {
'active_prefix': 'C://Users//Sorade//Anaconda3',
'active_prefix_name': 'base',
'channels': [
'https://repo.continuum.io/pkgs/main/win-64',
'https://repo.continuum.io/pkgs/main/noarch',
'https://repo.continuum.io/pkgs/free/win-64',
'https://repo.continuum.io/pkgs/free/noarch',
'https://repo.continuum.io/pkgs/r/win-64',
'https://repo.continuum.io/pkgs/r/noarch',
'https://repo.continuum.io/pkgs/pro/win-64',
'https://repo.continuum.io/pkgs/pro/noarch',
'https://repo.continuum.io/pkgs/msys2/win-64',
'https://repo.continuum.io/pkgs/msys2/noarch'
],
'conda_build_version': '3.4.1',
'conda_env_version': '4.4.10',
'conda_location': 'C://Users//Sorade//Anaconda3//lib//site-packages//conda',
'conda_prefix': 'C://Users//Sorade//Anaconda3',
'conda_private': false,
'conda_shlvl': -1,
'conda_version': '4.4.10',
'config_files': [
'C://Users//Sorade//.condarc'
],
'default_prefix': 'C://Users//Sorade//Anaconda3',
'env_vars': {
'CIO_TEST': '<not set>',
'CONDA_PREFIX': 'C://Users//Sorade//Anaconda3',
'CONDA_ROOT': 'C://Users//Sorade//Anaconda3',
'GTK_BASEPATH': 'C://Program Files (x86)//GtkSharp//2.12//',
'HOMEPATH': '//Users//Sorade',
'PATH': 'C://Users//Sorade//Anaconda3;C://Users//Sorade//Anaconda3//Library//mingw-w64//bin;C://Users//Sorade//Anaconda3//Library//usr//bin;C://Users//Sorade//Anaconda3//Library//bin;C://Users//Sorade//Anaconda3//Scripts;C://Users//Sorade//Anaconda3//Library//bin;C://WINDOWS//system32;C://WINDOWS;C://WINDOWS//System32//Wbem;C://WINDOWS//System32//WindowsPowerShell//v1.0//;C://Program Files (x86)//ATI Technologies//ATI.ACE//Core-Static;C://Program Files (x86)//GtkSharp//2.12//bin;C://Android;C://Windows//System32;C://WINDOWS//System32//OpenSSH//;C://Users//Sorade//AppData//Local//Microsoft//WindowsApps',
'PSMODULEPATH': 'C://WINDOWS//system32//WindowsPowerShell//v1.0//Modules//',
'REQUESTS_CA_BUNDLE': '<not set>',
'SSL_CERT_FILE': '<not set>'
},
'envs': [],
'envs_dirs': [
'D://Documents//Loisirs//Programming//Anaconda3_envs',
'C://Users//Sorade//Anaconda3//envs',
'C://Users//Sorade//AppData//Local//conda//conda//envs',
'C://Users//Sorade//.conda//envs'
],
'is_windows_admin': true,
'netrc_file': null,
'offline': false,
'pkgs_dirs': [
'C://Users//Sorade//Anaconda3//pkgs',
'C://Users//Sorade//AppData//Local//conda//conda//pkgs'
],
'platform': 'win-64',
'python_version': '3.6.4.final.0',
'rc_path': 'C://Users//Sorade//.condarc',
'requests_version': '2.18.4',
'root_prefix': 'C://Users//Sorade//Anaconda3',
'root_writable': true,
'site_dirs': [],
'sys.executable': 'C://Users//Sorade//Anaconda3//python.exe',
'sys.prefix': 'C://Users//Sorade//Anaconda3',
'sys.version': '3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)]',
'sys_rc_path': 'C://Users//Sorade//Anaconda3//.condarc',
'user_agent': 'conda/4.4.10 requests/2.18.4 CPython/3.6.4 Windows/10 Windows/10.0.17134',
'user_rc_path': 'C://Users//Sorade//.condarc'
},
'error': 'RecursionError(\'maximum recursion depth exceeded\',)',
'exception_name': 'RecursionError',
'exception_type': '<class \'RecursionError\'>',
'traceback': 'Traceback (most recent call last):
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//exceptions.py/', line 789, in __call__
return func(*args, **kwargs)
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//cli//main.py/', line 78, in _main
exit_code = do_call(args, p)
File /'C://Users//Sorade//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//Sorade//Anaconda3//lib//site-packages//conda//cli//main_install.py/', line 11, in execute
install(args, parser, \'install\')
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//cli//install.py/', line 236, in install
force_reinstall=context.force,
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//core//solve.py/', line 504, in solve_for_transaction
force_remove, force_reinstall)
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//core//solve.py/', line 437, in solve_for_diff
final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//core//solve.py/', line 218, in solve_final_state
_, inconsistent_dists = r.bad_installed(solution, ())
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//resolve.py/', line 731, in bad_installed
C = r2.gen_clauses()
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//resolve.py/', line 509, in gen_clauses
C.Require(C.Or, nkey, self.push_MatchSpec(C, ms))
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//resolve.py/', line 481, in push_MatchSpec
m = C.from_name(self.push_MatchSpec(C, ms2))
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//resolve.py/', line 481, in push_MatchSpec
m = C.from_name(self.push_MatchSpec(C, ms2))
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//resolve.py/', line 481, in push_MatchSpec
m = C.from_name(self.push_MatchSpec(C, ms2))
[Previous line repeated 966 more times]
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//resolve.py/', line 480, in push_MatchSpec
ms2 = MatchSpec(track_features=tf) if tf else MatchSpec(nm)
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//models//match_spec.py/', line 76, in __call__
return super(MatchSpecType, cls).__call__(**kwargs)
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//models//match_spec.py/', line 178, in __init__
self._match_components = self._build_components(**kwargs)
File /'C://Users//Sorade//Anaconda3//lib//site-packages//conda//models//match_spec.py/', line 365, in _build_components
return frozendict(_make(key, value) for key, value in iteritems(kwargs))
RecursionError: maximum recursion depth exceeded
'
}
Upload successful.
. Error - Extra data: line 73 column 1 (char 6530)"
答案 0 :(得分:0)
您可能不再遇到此问题,但是对于遇到完全相同问题的其他人(例如我)。我使用的是conda版本4.4.10,无法更新任何软件包。我尝试了此页面上的所有建议(以及许多其他建议),但没有任何效果。我最终从https://repo.anaconda.com/pkgs/main/win-64/下载了conda版本4.5.0,(我认为)应该列出与以下给出的列表一致的conda软件包:
conda search conda
将bz2文件放置在C:/ User / Name /目录中,然后运行:
conda update conda-4.5.0-py36_0.tar.bz2 --offline
在此之后,conda更新/安装应该可以工作,并允许所有其他软件包进行更新。