I am trying to install Keras via install_keras() on a machine running Ubuntu 18.04. I have installed Miniconda on the machine. Reticulate can find the installation of Minconda:
reticulate::conda_version()
[1] "conda 4.8.3"
reticulate::conda_binary()
[1] "/opt/anaconda/bin/conda"
But when I go to install Keras:
keras::install_keras(method='conda', conda='auto')
Error: could not find a Python environment for /usr/bin/python3
Even if I specify the path from reticulate::conda_binary, I get the same error:
keras::install_keras(method='conda', conda='/opt/anaconda/bin/conda')
Error: could not find a Python environment for /usr/bin/python3
It doesn't seem to be a problem with finding Miniconda if Reticulate can detect it (and commands like reticulate::conda_create("r-reticulate") work fine).