At first, I chalked up my problems to being a novice Linux Mint user, but I was stumped at the same spot with pretty much the same messages after I ran install_greta_deps() on my Windows machine.
I installed and loaded greta and ran install_greta_deps() then restarted R. When I test greta [normal(0,1)] I get the message:
x Initialising python and checking dependencies, this may take a moment. … failed
Error: We have detected that you do not have the expected python packages setup.
You can set these up by running this R code in the console:
install_greta_deps()
Then, restart R and run:
library(greta)
(Note: Your R session should not have initialised Tensorflow yet.)
For more information, see ?install_greta_deps
I didn’t explicitly initialize Tensorflow and when I try to follow the second approach to setting up python/miniconda:
reticulate::install_miniconda()
I get:
Error: Miniconda is already installed at path “C:/Users/degaspec/AppData/Local/r-miniconda”.
- Use
reticulate::install_miniconda(force = TRUE)
to overwrite the previous installation.
I tried reticulate::install_miniconda(force=TRUE) which seemed to work, followed by:
reticulate::conda_create(
envname = "greta-env",
python_version = "3.7"
)
reticulate::conda_install(
envname = "greta-env",
packages = c(
"numpy==1.16.4",
"tensorflow-probability==0.7.0",
"tensorflow==1.14.0"
)
)
...but at the end of all that I got the message:
Error: one or more Python packages failed to install [error code 1]
Looking for a solution to getting greta up and running.
Thanks! Curtis