Anaconda报错:AttributeError: ‘NoneType‘ object has no attribute ‘execute‘

Anaconda报错:AttributeError: ‘NoneType‘ object has no attribute ‘execute‘

重装anaconda后打开spyder发现报错:

File “D:\Anaconda3\envs\tensorflow\lib\site-packages\spyder\plugins\ipythonconsole.py”, line 890, in run_script
self.execute_code(line, current_client, clear_variables)
File “D:\Anaconda3\envs\tensorflow\lib\site-packages\spyder\plugins\ipythonconsole.py”, line 936, in execute_code
sw.execute(to_text_string(to_text_string(lines)))
File “D:\Anaconda3\envs\tensorflow\lib\site-packages\qtconsole\history_console_widget.py”, line 47, in execute
source, hidden, interactive)
File “D:\Anaconda3\envs\tensorflow\lib\site-packages\qtconsole\console_widget.py”, line 632, in execute
self._execute(source, hidden)
File “D:\Anaconda3\envs\tensorflow\lib\site-packages\qtconsole\frontend_widget.py”, line 294, in _execute
msg_id = self.kernel_client.execute(source, hidden)
AttributeError: ‘NoneType’ object has no attribute ‘execute’

 

重装多次依旧无法解决。

猜测原因:应该是没有卸载完成导致。

*终解决方式:

卸载所有C盘下所有相关anaconda的文件重新安装后即可成功。