# python – Keras model setup (miniconda) in RStudio

I am attempting to create a simple keras model in R Studio, using model <- keras_model_sequential

I have the following libraries install and present:
keras
dplyr
reticulate

However, when I run the initial model code, I receive the following error:

Error in conda_python(envpath, conda = miniconda) :
no conda environment exists at path ‘C:/Users/…/AppData/Local/r-miniconda/envs/r-reticulate’

Or

Error: Error 1 occurred creating conda environment C:/Users/…/AppData/Local/r-miniconda/envs/r-reticulate

I have tried uninstalling miniconda and reinstalling an older version (4.5.11) as I read that that may help.

I have also unchecked the “Use secure method for HTTP” and “Use Internet Explorer library/proxy for HTTP” as I also read that that may help.

I have even tried doing this on a different machine and get the same error.

I’m unsure as to how to fix this error and I’m lost now!

Any help will be appreciated.