Alexander Chervov
Alexander Chervov

Reputation: 944

Microsoft Visual C++ 14.0 is required - error - pip install fbprophet

I am trying pip install fbprophet. I am getting that error: "Microsoft Visual C++ 14.0 is required" It has been discussed many times (e.g. Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat) ) , but seems no answer helps me.

My environment:

Windows 7

Anaconda - just installed

Mirosoft VC 2017 - just installed ( It is not version 14, but it is newer - it seems impossible to load 14 (2015) version from MS site )

MS VC Build Tools - also just installed

computer has been relauched after installations

Upvotes: 7

Views: 11523

Answers (4)

ezadeh
ezadeh

Reputation: 71

VictorHMartin's answer (and following the details from the links provided) worked perfectly fine for me as long as I tried using them with Python 3.7. However, I needed to get them working with Python 3.9, where the last two conda commands failed and I had to use pip instead; here's the list of commands that worked for me:

  • conda create -n venv (replace venv name as you like)
  • activate venv
  • conda install libpython m2w64-toolchain -c msys2
  • conda install numpy pandas cython -c conda-forge
  • conda install matplotlib scipy plotly -c conda-forge (fbprophet optionally needs plotly for interactive plots)
  • pip install pystan (conda install pystan -c conda-forge failed here for P3.9)
  • pip install fbprophet (conda install fbprophet -c conda-forge failed here for P3.9)

Upvotes: 4

Alex Fang
Alex Fang

Reputation: 79

I add -c conda-forge and seems succeeded.

try this:

conda install -c conda-forge fbprophet

Upvotes: 0

Bharat
Bharat

Reputation: 2469

I could not solve it in the latest version of Anaconda which is 5.3.0. Upon extensive googling, I found a thread on github that advised me to go back to the previous version of Anaconda which is 5.2.0.

With that, it worked fine.

Thanks for taking time to look into it though.

Upvotes: 4

VictorHMartin
VictorHMartin

Reputation: 324

I had the same problem but I solved using these instructions: https://facebook.github.io/prophet/docs/installation.html

From that page, you can go to the installation instructions for PyStan (which is needed) in which is specified how to install a C++ compiler for the libraries.

tl;dr -> conda install libpython m2w64-toolchain -c msys2

It does not install MS compiler, but it worked on my case and I had also errors regarding the compiler (also had VS2017 installed). I run Windows 10 and latest Anaconda distribution. I hope it helps.

Upvotes: 11

Related Questions