If you install Spyder through Anaconda (or miniconda), its launcher in the Start Menu will behave correctly. However, if you pin it to the taskbar, it won't behave properly. Opening Spyder through that icon on the taskbar will open Spyder, but a new (duplicate) icon on the taskbar will appear. The expected behavior would instead be that the pinned icon represents the application window, and no duplicate icon appears.
To fix this bug, I have followed the instructions as per this comment on this GitHub Issue.
- Create a new text file in your preferred location, and call it
spyder-taskbar.py
with the following contents:from win32com.shell import shellcon from win32com.propsys import propsys, pscon