Setup Failed on 3.12.2 version

Im new to phyton, I have problem with my pyhton,so i uninstall it, and try to reinstall,but it keep saying that the setup failed and a code about fatal error during installation,somebody please help me
image_2024-03-04_050754413

Try Spyder. It has a better user interface:

Though still attempt to download IDLE from python.org so that you can point to the most up to date python interpreter v3.12. Spyder currently comes with v3.8.

What does the log file (it links to it) say?

If I put that error code along with python into a search engine, I get many useful results right off the top.

From Stack Overflow:

From the Python issue tracker on GitHub:

… and previously on this forum:

Got the same issue. I got it solved with this windows tool: microsoftProgram_install_and_uninstall.meta (troubleshooting tool)
It checks registry entries. For me there was 6 entries for Python and that being the reason for windows installer thinking Python is already there or being installed. It can clear one reg at a time so be patient and just use it as many times you need to remove them all one by one. It will ask for two options for issue - install or uninstall. In my case I used install.
clearing all of them out solved it.

Here is the link to the tool.