更新spyder无法正常打开,提示spyder --reset

更新spyder无法正常打开,提示spyder --reset
出现这个问题是因为更新了spyder,结果就打不开了。找了网上各种方法都没有奏效。
结果在anaconda中启动错误提示如下:
Traceback (most recent call last):
File “D:\anaconda3\lib\site-packages\spyder\app\mainwindow.py”, line 3711, in main
mainwindow = run_spyder(app, options, args)
File “D:\anaconda3\lib\site-packages\spyder\app\mainwindow.py”, line 3552, in run_spyder
main.setup()
File “D:\anaconda3\lib\site-packages\spyder\app\mainwindow.py”, line 1010, in setup
from spyder.plugins.ipythonconsole.plugin import IPythonConsole
File “D:\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py”, line 52, in
from spyder.plugins.ipythonconsole.widgets import ClientWidget
File “D:\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets_init_.py”, line 16, in
from .debugging import DebuggingWidget
File “D:\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py”, line 22, in
from IPython.core.inputtransformer2 import TransformerManager
ModuleNotFoundError: No module named ‘IPython.core.inputtransformer2’

问题解决:
因为提示少了”IPython.core.inputtransformer2“模块,所以找到对应的文件夹
”D:\anaconda3\Lib\site-packages\IPython\core“
发现在这下面的文件与可以正常运行的ipython文件夹对比少了”inputtransformer2.py“和”async_helpers.py“两个文件,从中复制过来,正常打开即可~~~
————————————————
版权声明:本文为CSDN博主「Y_yuxiaoyu」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Y_yuxiaoyu/article/details/103792372

你可能感兴趣的:(python,anaconda,spyder)