'Unable to Uninstall Python in OsX

I have installed python 3.9.10 in my mac machine. But when I check the version using python --version the version is found to be 3.9.7

I also tried to remove it through finder but the version there was 3.9.10

(base) adminuser@User-MacBook-Air ~ % brew uninstall python
Error: No such keg: /usr/local/Cellar/python
(base) adminuser@User-MacBook-Air ~ % python --version
Python 3.9.7

I checked if there are other versions installed and I couldn't find any! Is there anything that I can do to resolve this issue?



Sources

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

Source: Stack Overflow

Solution Source