rstudio / tensorflow.rstudio.com

https://tensorflow.rstudio.com
9 stars 12 forks source link

Any workarounds for installing on Windows? OpenSSL problems. #35

Open erdeyl opened 1 year ago

erdeyl commented 1 year ago

Hi, I have a Windows-based (v11) and a Mac M1 with Tensorflow for R working great. On my new laptop (Windows 11), I currently face "CondaSSLError: OpenSSL is required to download and install packages". This seems to be a general Python problem for now. Still, after so many hours of suffering with attempts at the proper configuration, I would be pleased to learn if you have any workaround for the current situation. Thank you.

t-kalinowski commented 1 year ago

The OpenSSL issue if I recall was originating from conda, or from insufficient system permissions. You might have better luck if you install a virtual environment.

library(reticulate)
uninstall_miniconda()
install_python()
virtualenv_create("r-reticulate", install_python())
keras::install_keras(envname = "r-reticulate)
erdeyl commented 1 year ago

Thank you for your answer. I got back to my original problem, why I tried miniconda.

library(reticulate) miniconda_uninstall()

so far, so good, then install_python() runs to an error: Error in setwd(root) : cannot change working directory

I am not comfortable outside my usual R usage and Stata. At the same time, I would love to use Tensorflow from R. I appreciate your great work and kind efforts.

erdeyl commented 1 year ago

Just out of curiosity I tried to install Tensorflow and Keras for R in an other Windows based computer and ran to the same error message as above. install_python() seems to look for a nonexistent library causing and error, miniconda_install() that is suggested by install_keras() stops at trying to find openssl on Windows. I would kindly appreciate any help.