Update python3 Symlink:
sudo ln -sf /usr/local/bin/python3.10 /usr/bin/python3
Update $PATH Environment Variable: Add Python 3.10’s directory to your $PATH to ensure the system recognizes the updated symlink.
echo 'export PATH="/usr/local/opt/python@3.10/bin:$PATH"' >> ~/.zshrc
Then check the python version:
python3 --version
Reference for only step.