Can't install tensorflow

Can somebody help me solve and understand the error below? I am running on a Mac with the latest OS release

Error: could not find a Python environment for /usr/local/bin/python3.8

tf$constant("Hellow Tensorflow")
Error: Installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:

You can install TensorFlow using the install_tensorflow() function.

Have you installed tensor-flow on conda?
Or try using py_install("tensroflow").

That doesn't work. I think that there is some connection between R and Python that is missing and that I am not familiar with:

Error: could not find a Python environment for /usr/local/bin/python3.8

Have you verified that python works on your computer?
Have you downloaded miniconda and set the path?
Try to install python again.
Then try to configure it from tools-global options.

My path is a windows one.