有人可以帮我解决Python中Spyder控制台的错误信息吗?这可能与我每次将我的Anaconda软件包从3更新为3.5的事实有关,我将其保存在另一个新文件夹中。在我意识到自己的错误后,我卸载并删除了前Anaconda导航器。它所指的环境是我创建但从未真正使用的环境,所以我很困惑为什么它被选为我更新版本的唯一可用环境。这是错误:
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\spyder\utils\introspection\manager.py", line 220, in get_completions
info = self._get_code_info('completions', automatic=automatic)
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\spyder\utils\introspection\manager.py", line 216, in _get_code_info
**kwargs)
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\spyder\utils\introspection\utils.py", line 75, in __init__
self._get_info()
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\spyder\utils\introspection\utils.py", line 87, in _get_info
lexer = find_lexer_for_filename(self.filename)
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\spyder\utils\introspection\utils.py", line 180, in find_lexer_for_filename
lexer = get_lexer_for_filename(filename)
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\pygments\lexers\__init__.py", line 203, in get_lexer_for_filename
res = find_lexer_class_for_filename(_fn, code)
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\pygments\lexers\__init__.py", line 168, in find_lexer_class_for_filename
for cls in find_plugin_lexers():
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\pygments\plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\pkg_resources\__init__.py", line 2404, in load
self.require(*args, **kwargs)
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\pkg_resources\__init__.py", line 2427, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "C:\Users\mlt08\Anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages\pkg_resources\__init__.py", line 872, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (parso 0.1.1 (c:\users\mlt08\anaconda3_5\envs\cryptocurrency-analysis\lib\site-packages), Requirement.parse('parso==0.1.0'), {'jedi'})
它有一个选择提交给Github,但每当我按下它时,它只会出错,所以我认为这是尝试解决它的最好方法。
答案 0 :(得分:0)
( Spyder维护者)
pkg_resources.ContextualVersionConflict :( parso 0.1.1(c:\ users \ mlt08 \ anaconda3_5 \ envs \ cryptocurrency-analysis \ lib \ site-packages),Requirement.parse(' parso == 0.1.0&# 39;),{' jedi'})
错误消息非常明确:您需要将名为parso
的程序包降级到其0.1.0
版本。如果您使用的是Anaconda,则需要打开一个系统终端(即cmd.exe)并在那里运行
conda install parso=0.1.0
如果失败或您使用pip在您的环境中安装软件包,则需要运行
pip install parso==0.1.0
注意:下次请尝试在Github上报告Spyder错误,而不是在此处打开问题。已经多次报告过这个完全相同的错误。