更新后 Spyder 无法在 Anaconda 中启动 (4.1.2) [英] Spyder failed to launch in Anaconda after update (4.1.2)
本文介绍了更新后 Spyder 无法在 Anaconda 中启动 (4.1.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚将 Spyder 更新到 4.1.2,当我尝试启动它时,它现在会产生错误并且无法启动.
I have just updated Spyder to 4.1.2 and when I try to launch it, it now produces an error and fails to launch.
conda list pylint
我该如何解决这个问题?
Output from conda list pylint
How can I solve this?
错误:
Traceback (most recent call last):
File "/Users/name/opt/anaconda3/bin/spyder", line 11, in
sys.exit(main())
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/app/start.py", line 205, in main
mainwindow.main()
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3734, in main
mainwindow = run_spyder(app, options, args)
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3590, in run_spyder
main.setup()
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 977, in setup
'spyder.plugins.{}'.format(plugin_name))
File "/Users/name/opt/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/pylint/__init__.py", line 14, in
from .plugin import Pylint as PLUGIN_CLASS
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/pylint/plugin.py", line 29, in
from spyder.plugins.pylint.confpage import PylintConfigPage
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/pylint/confpage.py", line 16, in
from spyder.plugins.pylint.widgets.pylintgui import PylintWidget
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/pylint/widgets/pylintgui.py", line 37, in
from spyder.plugins.pylint.utils import get_pylintrc_path
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/pylint/utils.py", line 16, in
import pylint.config
File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/pylint/config.py", line 54, in
import toml
ModuleNotFoundError: No module named 'toml'
推荐答案
这似乎是默认频道提供的pylint包中的错误.包定义中当前缺少依赖项 toml
.
This seems to be an error in the pylint package provided by the default channels. The dependency toml
is currently missing in the package definition.
目前的快速解决方法是降级到以前的版本:
A quick workaround for now is to downgrade to the previous version:
conda install "pylint<2.5"
另请参阅 anaconda-issues/#11775.
这篇关于更新后 Spyder 无法在 Anaconda 中启动 (4.1.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文