Check for any old existing python installation. In my case it was anaconda. You can put command "which python" to check if it points to miniforge python installation, if not then delete the installation is it pointing to.
Restart the terminal and install miniforge or update it with "bash filename_miniforge -u". Check "which python", if it doesn't point to miniforge then restart terminal
You must be good to go for creating environment and next steps to install tf