Python Mode in Emacs on Windows
Python mode in Emacs on GNU/Linux works out of the box with no setup if you have Python installed on your system. However, on Windows, Python mode does not work even if Python is installed. It does not help to add the directory Python is in to the exec-path or add it to the $PATH environment variable either. After trying those two things, I looked for a useful variable to set the path to the python executable and tried a couple of promising ones before finding the correct solution. Below you see the line you need to add to your emacs config to get it to work.
(setq python-shell-interpreter "c:/Python312/python.exe")
Another thing I discovered today is that Windows 11 has a Beta feature to switch to UTF-8 text encoding. I hope Microsoft prioritises this feature and switch to Unix line endings (LF) at the same time. UTF-8 and Unix line endings would make Windows less painful to use for developers, sysops and (cloud) admins.