I am trying to use reticulate in R.
In bash I get:
which python
# ~/.pyenv/shims/python
But when I set it in R I never get it to work. Could someone help me understand why?
library(reticulate)
my_python='~/.pyenv/shims/python'
use_python(my_python, required = T) # throws no message
py_config() #throws error below
#Error in initialize_python(required_module, use_environment) :
# Python shared library not found, Python bindings not loaded.
Note that I made sure that ~/pyenv/shims/ is in $PATH.
Thanks a lot for the help in advance