Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
193 views
in Technique[技术] by (71.8m points)

python - Spyder doesn't load after the update 4.2.1

I updated the anaconda Navigator and the Spyder.

But now when I try to launch it, there is the following message:

Traceback (most recent call last):
File "C:ProgramDataAnaconda3Scriptsspyder-script.py", line 10, in 
sys.exit(main())
File "C:ProgramDataAnaconda3libsite-packagesspyderappstart.py", line 210, in main
from spyder.app import mainwindow
File "C:ProgramDataAnaconda3libsite-packagesspyderappmainwindow.py", line 119, in 
from spyder.utils.environ import WinUserEnvDialog
File "C:ProgramDataAnaconda3libsite-packagesspyderutilsenviron.py", line 19, in 
from spyder.plugins.variableexplorer.widgets.collectionseditor import (
File "C:ProgramDataAnaconda3libsite-packagesspyderpluginsvariableexplorerwidgetscollectionseditor.py", line 57, in 
from spyder.plugins.variableexplorer.widgets.collectionsdelegate import (
File "C:ProgramDataAnaconda3libsite-packagesspyderpluginsvariableexplorerwidgetscollectionsdelegate.py", line 31, in 
from spyder.plugins.variableexplorer.widgets.objectexplorer.attribute_model 
File "C:ProgramDataAnaconda3libsite-packagesspyderpluginsvariableexplorerwidgetsobjectexplorer\__init__.py", line 23, in 
from .objectexplorer import ObjectExplorer
File "C:ProgramDataAnaconda3libsite-packagesspyderpluginsvariableexplorerwidgetsobjectexplorerobjectexplorer.py", line 33, in 
from spyder.plugins.editor.widgets.codeeditor import CodeEditor
File "C:ProgramDataAnaconda3libsite-packagesspyderpluginseditorwidgetscodeeditor.py", line 70, in 
from spyder.plugins.editor.panels import (ClassFunctionDropdown,
File "C:ProgramDataAnaconda3libsite-packagesspyderpluginseditorpanels\__init__.py", line 13, in 
from .codefolding import FoldingPanel
File "C:ProgramDataAnaconda3libsite-packagesspyderpluginseditorpanelscodefolding.py", line 32, in 
from spyder.plugins.editor.panels.utils import (
File "C:ProgramDataAnaconda3libsite-packagesspyderpluginseditorpanelsutils.py", line 15, in 
import textdistance
ModuleNotFoundError: No module named 'textdistance'

Can someone please suggest me what should I do

EDIT
I followed what "CanciuCostin" suggested in the comment.
And now I'm getting the following:
enter image description here

I tried conda install -c anaconda qtconsole and conda update qtconsole as well. But still the message is there.. :/

question from:https://stackoverflow.com/questions/66049999/spyder-doesnt-load-after-the-update-4-2-1

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had the same error today - with the last line about textdistance. I used conda to install text distance from the same environment as spyder and now I can open Spyder again.

conda install textdistance

My anaconda environment uses Python 3.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...