Setup miniconda with reticulate for M1 Macbook Pro

Hello,

I was trying to set up python in my Rstudio. I followed all the steps from this tutorial:
https://docs.rstudio.com/tutorials/user/using-python-with-rstudio-and-reticulate/

Everything worked until I typed reticulate::py_config(), which gives me the following error instead of showing the python version 3.x like the video.

Error in py_initialize(config$python, config$libpython, config$pythonhome, :
/opt/miniconda3/lib/libpython3.8.dylib - dlopen(/opt/miniconda3/lib/libpython3.8.dylib, 10): no suitable image found. Did find:
/opt/miniconda3/lib/libpython3.8.dylib: mach-o, but wrong architecture
/opt/miniconda3/lib/libpython3.8.dylib: mach-o, but wrong architecture

I also tried miniconda 3.9 and it also gave a similar error.

Is this the problem for M1 Macbook only? Please help!! Thank you so much!

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.