The reticulate package allows you to execute Python code from R. If you use pyenv to install Python the default options will not work with reticulate.
For example:
The problem is that when you install Python, you need to enable shared libraries. You can do this in pyenv with the following (see pyenv docs):
Now, if you use the new Python binary reticulate will work: