gpt4 book ai didi

python - Conda 更新后打开 Spyder 的问题

转载 作者:行者123 更新时间:2023-12-04 01:07:02 26 4
gpt4 key购买 nike

我一直在 Jupyter 中编码,主要是因为教授的偏好,所以当我最近打开 Sypder 时,它希望我更新它,我通过 Conda 做了,现在当我尝试打开它时它给了我这个。我试图强制 Sypder 回到以前的版本,但没有成功。有人可以帮忙吗??

Traceback (most recent call last):
File "C:\Users\cyrra\anaconda3\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\app\start.py", line 210, in main
from spyder.app import mainwindow
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 119, in
from spyder.utils.environ import WinUserEnvDialog
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\utils\environ.py", line 19, in
from spyder.plugins.variableexplorer.widgets.collectionseditor import (
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionseditor.py", line 57, in
from spyder.plugins.variableexplorer.widgets.collectionsdelegate import (
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionsdelegate.py", line 31, in
from spyder.plugins.variableexplorer.widgets.objectexplorer.attribute_model \
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\objectexplorer\__init__.py", line 23, in
from .objectexplorer import ObjectExplorer
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\objectexplorer\objectexplorer.py", line 33, in
from spyder.plugins.editor.widgets.codeeditor import CodeEditor
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\plugins\editor\widgets\codeeditor.py", line 70, in
from spyder.plugins.editor.panels import (ClassFunctionDropdown,
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\plugins\editor\panels\__init__.py", line 13, in
from .codefolding import FoldingPanel
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\plugins\editor\panels\codefolding.py", line 32, in
from spyder.plugins.editor.panels.utils import (
File "C:\Users\cyrra\anaconda3\lib\site-packages\spyder\plugins\editor\panels\utils.py", line 15, in
import textdistance
ModuleNotFoundError: No module named 'textdistance'

谢谢!

最佳答案

(这里是 Spyder 维护者)这个错误是由错误打包的 Spyder 版本引起的,但现在已经修复了。

要获得修复,请打开 Anaconda Prompt 并在那里运行

conda update spyder

如果不行,请运行

conda remove --force spyder
conda install spyder=4.2.1

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

关于python - Conda 更新后打开 Spyder 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66095040/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com