prophet: Can't install fbprophet on Windows even with visual c++ installed
Hello, Pystan is installed successfully but when I try to install fbprophet via pip, I get the following error: (It says visual c++ is not installed but i installed it via Visual studio setup tool. I have visual studio installed on my computer as well. How can I confirm that visual c++ is installed? Since, I was able to install Pystan, doesn’t it mean that visual c++ was installed?) `Failed building wheel for fbprophet Running setup.py clean for fbprophet Failed to build fbprophet Installing collected packages: fbprophet Running setup.py install for fbprophet … error Complete output from command C:\WinPython\python-3.6.0.amd64\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\Bishal\AppData\Local\Temp\pip-install-rnffrql9\fbprophet\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\Bishal\AppData\Local\Temp\pip-record-jinspdzq\install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build\lib creating build\lib\fbprophet creating build\lib\fbprophet\stan_models INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_1988b9d517e3c16daf27a07f09e3de97 NOW. error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command “C:\WinPython\python-3.6.0.amd64\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\Name\AppData\Local\Temp\pip-install-rnffrql9\fbprophet\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\Name\AppData\Local\Temp\pip-record-jinspdzq\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\Name\AppData\Local\Temp\pip-install-rnffrql9\fbprophet\
C:\Users\Name>`
How can I get past this? It says
I really want to use this tool so any help would be really appreciated.
thanks
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 4
- Comments: 16 (6 by maintainers)
I’ve had the same problem. But it works after I follow this steps:
On Prompt install Ephem: conda install -c anaconda ephem
Install Pystan: conda install -c conda-forge pystan
Finally install Fbprophet conda install -c conda-forge fbprophet
Oh OK this is a different issue then. It looks like pystan is not working, seemingly due to an issue in the C++ compiler. Check the instructions here for getting pystan to work, and then fbprophet should work once it does: http://pystan.readthedocs.io/en/latest/windows.html
O thanks @bletham , i working, i will publish the solution(as soon as I have it).
[EDIT]
after of read (http://pystan.readthedocs.io/en/latest/windows.html), i used the propused methologi for: (http://pystan.readthedocs.io/en/latest/windows.html#setting-up-mingw-w64-on-windows), in these case, i create the env with conda, and download the packages.
finally this it part of the output when compile pystan the correct mode.
and output the:
THANKS for you help.