Reticulate python virtual environment Error: Python shared library not found, Python bindings not loaded

I have created and activated a python virtual environment through the terminal (using a Mac OS).

When I specify to use the activated virtual environment, using:

reticulate::use_virtualenv("/Users/os/textrpp_virtualenv/", required = TRUE)

I then use it, for example, with:

reticulate::py_config() 

I get the following error:

Error: Python shared library not found, Python bindings not loaded.
Use reticulate::install_miniconda() if you'd like to install a Miniconda Python environment.

any help is much appreciated.

This was solved by updating my python version to 3.9.0