排坑:TypeError: handle_get_file_code() got an unexpected keyword argument ‘save_all‘

一,报错现象

在安装或更新好spyder后,在运行之前的代码时,可能会出现如下报错信息:

This command failed to be executed because an error occurred while trying to get the file code from Spyder's editor. The error was:
An exception has occurred, use %tb to see the full traceback.
TypeError: handle_get_file_code() got an unexpected keyword argument 'save_all'

二,报错原因

此问题由更新spyder后内核版本冲突导致

三,解决

重装spyder-kernels1.9.3版本即可

conda install spyder-kernels=1.9.3

猜你喜欢

转载自blog.csdn.net/TFATS/article/details/110424064