modeltime.gluonts icon indicating copy to clipboard operation
modeltime.gluonts copied to clipboard

install_gluonts not working anymore - with workaround

Open multiduplikator opened this issue 1 year ago • 1 comments

At the date of writing this, miniconda on win11 22H2 always runs into openssl related errors when running install_gluonts. Creating the conda environment manually as per instructions ends in conflicts and unsuccesful solves (with or without conda-forge. The usual suspects mxnet, numpy and so on are causing the issue.

Some how, this installation mechanism needs some overhaul on windows.

For what its worth, I found an alternative way to create an environment that works. Maybe it helps others:

  1. open cmd as admin
  2. winget install Python.Python.3.7 (also possible to download installer and install "normally" from python.org)
  3. close cmd
  4. open cmd as admin
  5. python.exe -m pip install --upgrade pip
  6. pip install wheel
  7. pip install --no-deps -r requirements.txt

Then in RStudio

Sys.setenv(GLUONTS_PYTHON = "C:\\Users\\<your.username.here>\\AppData\\Local\\Programs\\Python\\Python37\\python.exe")
library(modeltime.gluonts)

requirements.txt

multiduplikator avatar Mar 20 '23 17:03 multiduplikator