0

I am using the to_categorical function in KerasR and it throws an error message in RStudio which is this:

mnist_y <- to_categorical(mnist_y, 10)

Collecting package metadata (current_repodata.json): ...working... failed

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to download and install packages.

Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

Error: Python not available See reticulate::use_python() to set python path, then use kerasR::keras_init() to retry

I am using R 4.2.1. Based on the error message, it seems that I have to install Python on my computer, and set the Python path? I am not an experienced user of Python.

I tried installing the package OpenSSL, but I am still getting the same error. Any help is greatly appreciated. Many thanks.

gerluc
  • 25
  • 4

0 Answers0