Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Nov 16, 2020 · 0 comments

Comments

@mdancho84
Copy link
Contributor

mdancho84 commented Nov 16, 2020

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
@mdancho84 mdancho84 changed the title error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/ error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio" Nov 16, 2020
@mdancho84 mdancho84 changed the title error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio" Windows 10: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio" Nov 16, 2020
@mdancho84 mdancho84 changed the title Windows 10: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio" Windows 10 Installation Error install_gluonts(): error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio" Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant