Spyder launch | Error while starting the kernal

On Windows 10
The process cannot access the file because it is being used by another process.
The system cannot find the file C:\Users\anilh\AppData\Local\Temp__conda_tmp_32572.txt.

I have tried reinstalling Conda, restarting Anaconda as well as restarting the Spyder. Nothing worked out.

Help is highly appreciated.

I’m seeing that exact same message too, apart from the serial number in the temp file name. I deactivated the base environment, updated all, activated the base environment, updated all, activated my only other environment, and updated all. No joy.

I solved it in 3 steps (not sure what is the minimum needed but will post back when I find out).

  • Close all windows
  • Go to Consoles pulldown menu and create a new console
  • Press Ctrl+Shift+I to make the console visible