I had by error installed python twice (3.8 via Windows Store and 3.9 via python installer) on a Win10 machine and after removing both of them and reinstalling 3.9, Python works