问题出现在更新spyder到最新版本
conda install spyder=4.1.4
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'
解决办法:
中输入:
conda install spyder-kernels=1.9.3
即重装spyder-kernels1.9.3版本