pythonranacondareticulate

Error: Unable to find conda binary. Is Anaconda installed? reticulate Rstudio


I installed reticulate via Rstudio. Now i want to use conda_create() but I installed anaconda in another directory then the default. How can I change the directory in which Rstudio is searching for anaconda?

Error: Unable to find conda binary. Is Anaconda installed?

Solution

  • The directory should be in your path. But you can check where it is like this:

    Sys.which("python")

    If you have multiple python versions (or it is not in your path), then you can specify a different location with use_python for where the python binary is located and use_conda for the conda environment.

    More info can be found in this reticulate vignette