greta-dev / greta

simple and scalable statistical modelling in R
https://greta-stats.org
Other
524 stars 63 forks source link

Creating 'greta-env' conda environment using python v3.7 failed #573

Closed kris1yi closed 1 year ago

kris1yi commented 1 year ago

Please briefly describe your problem and what output you expect.

If you have a question, please don't use this form. Instead, ask on https://forum.greta-stats.org/.

Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.


`greta::install_greta_deps()`

greta::install_greta_deps() ✖ Creating 'greta-env' conda environment using python v3.7, this may take a minute ... failed

have tried these in R cloud

```r
reticulate::install_miniconda(force = TRUE)
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'))

CondaValueError: prefix already exists: /cloud/home/r1747991/.local/share/r-miniconda/envs/greta-env
Error: Error creating conda environment 'greta-env' [exit code 1]
njtierney commented 1 year ago

Hi there,

You are running this on a cloud service, is that correct? In the past we have found that we needed to increase RAM to about 4Gb in order to install dependencies - we should probably mention this in the help message that follows, as this comes up a bit.

Are you using 4Gb of RAM on your cloud service? If not, then that would be great to be able to run it with more RAM?

Let me know how you go!

njtierney commented 1 year ago

I'm closing this issue for the time being but please feel free to post here again to reopen, or post on https://forum.greta-stats.org/ if you want help with other topics :)