在Conda更新后打开Spyder时出现问题

Issues Opening Spyder after Conda updating(在Conda更新后打开Spyder时出现问题)
本文介绍了在Conda更新后打开Spyder时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在用Jupyter编写代码,主要是因为教授们的偏好,所以当我最近打开Sypder使用时,它想让我更新它,我通过Conda更新了它,现在当我试图打开它时,它给了我这个。我试着强迫Sypder回到以前的版本,但没有成功。有人能帮忙吗??

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

谢谢!

推荐答案

(Spyder Maintainer Here)此错误是由错误打包的Spyder版本引起的,但现在已修复。

若要获取修复程序,请打开Anaconda提示符并在此处运行

conda update spyder

如果不起作用,请运行

conda remove --force spyder
conda install spyder=4.2.1

这应该可以解决您的问题。

这篇关于在Conda更新后打开Spyder时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Leetcode 234: Palindrome LinkedList(Leetcode 234:回文链接列表)
How do I read an Excel file directly from Dropbox#39;s API using pandas.read_excel()?(如何使用PANDAS.READ_EXCEL()直接从Dropbox的API读取Excel文件?)
subprocess.Popen tries to write to nonexistent pipe(子进程。打开尝试写入不存在的管道)
I want to realize Popen-code from Windows to Linux:(我想实现从Windows到Linux的POpen-code:)
Reading stdout from a subprocess in real time(实时读取子进程中的标准输出)
How to call type safely on a random file in Python?(如何在Python中安全地调用随机文件上的类型?)