'Python 3.8.6 says I have a newer version of Python installed, but I don't

I just installed Python 3.9.0 and I found out Pygame hasn't been fully released yet in this Python version. I then tried to uninstall Python and it said it uninstalled with no errors. Then, I tried to reinstall Python 3.8.6, and I got the following error message.

A newer version of Python has already been installed on this device.

I checked the control panel to see if Python 3.9.0 was still on my computer, and it wasn't. The only Python app was the Python launcher, and I got an error message when I tried to uninstall it. If I type py in the start menu a Python command prompt appears, but I can't open it. Can anyone help with this problem?



Solution 1:[1]

First check the version of Python by entering to the console using the command "python" in Command Prompt or Terminal to see if Python still shows the 3.9.0 version, if it does go to Control Panel and uninstall it from there, then try restarting the PC as the comment refers. If running the command throws you to the Windows Store try "python3". If that doesn't work then uninstall Python completely and delete it's folder from the PC, restart and install again. I highly recommend Python installer from their website. To me the store edition gave problems with modules. If the installer from the website does not work, then try version from the Windows Store, this version will give from the installer even CMD access.

Solution 2:[2]

I solved it this way on Windows 11:

First, download the installer of 3.9. Run it, do a repair installation, after that run the installer again, this time choose uninstall.

Next, run the installer of 3.8 to install, installation went successfully.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 Ruben Helsloot
Solution 2 CatOverflow