Never uninstall the default python3 package on Linux. The OS uses it for critical tools (like apt ). You will crash your system.
brew link --overwrite python
If you are on Windows 10 or 11, you can use the built-in Windows Package Manager.
You installed Python, but the terminal says the command isn't found.