'Application Spyder error during installation

I want to install Spyder 5.1.5 on Windows 10 but I get this error. Is there way around it? I uninstalled and reinstalled Anaconda but the same error persists.

I also tried the following on the Anaconda prompt but to no avail.

conda remove spyder-kernels
conda install spyder-kernels=0.*



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source