Trouble running python on Rstudio


I have been trying to run reticulate on Rstudio. For some reason when I chose the Python2.7 interpreter, there are no problems. But when I try to run it using Python3, as seen in the code below, it doesn't work. I will appreciate any inputs here, please.
Error in py_initialize(config$python, config$libpython, config$pythonhome, :
/Applications/anaconda3/lib/libpython3.8.dylib - dlopen(/Applications/anaconda3/lib/libpython3.8.dylib, 10): no suitable image found. Did find:
/Applications/anaconda3/lib/libpython3.8.dylib: mach-o, but wrong architecture
/Applications/anaconda3/lib/libpython3.8.dylib: mach-o, but wrong architecture "

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.