business-science / modeltime.gluonts

GluonTS Deep Learning with Modeltime
https://business-science.github.io/modeltime.gluonts/
Other
38 stars 11 forks source link

Windows 10 Installation Error install_gluonts(): error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio" #4

Closed mdancho84 closed 3 years ago

mdancho84 commented 3 years ago

Problem:

This happens on Windows 10:

Error: Error installing package(s): "mxnet==1.6", "gluonts==0.5.2", "numpy==1.19.4", "pandas==1.0.5", "scikit-learn==0.23.2", "matplotlib==3.3.2", "seaborn==0.11.0", "pathlib==1.0.1"

It's the result of a previous error a few lines up indicating Microsoft Visual Studio C++ Build Tools are required.

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio"

Solution:

Step 1

Download Visual Studio Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/

Step 2

Select Visual Studio C++ Build Tools. This will take a few minutes to download and install. The C++ build tools will enable the critical Python libraries (mxnet, gluonts, etc) to be installed.

image

Step 3

Restart your computer. You will then be able to run install_gluonts() to set up the Python Environment.

image

What Success Looks Like

When you fire R back up, load Modeltime GluonTS and run the installation function:

library(modeltime.gluonts)

install_gluonts()

#> ...
#> Successfully built ujson
#> Installing collected packages: ujson, gluonts, threadpoolctl, scipy, joblib, scikit-learn, seaborn, pathlib
#> Successfully installed gluonts-0.5.2 joblib-0.17.0 pathlib-1.0.1 scikit-learn-0.23.2 scipy-1.5.4 seaborn-0.11.0 threadpoolctl-2.1.0 #> ujson-1.35