prophet icon indicating copy to clipboard operation
prophet copied to clipboard

fb-prophet Python package installation on Windows 2016 failed with exit status 2

Open algomaschine opened this issue 4 years ago • 3 comments

Gents, I have a typical issue installing fbprophet package on Windows with pip. Now it's something else :-) Below is the log, here're my specs:

Windows Server 2019 64-bit OS, x64-based processor AMD EPYC 75020 32-Core Processor Python 3.9.10 pip 22.0.2 from C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pip (python 3.9) installed the latest Microsoft C++ Build Tools from here https://visualstudio.microsoft.com/visual-cpp-build-tools/ Tried installing like pip install fbprophet --user AND also without --user

I hope someone can help me!

C:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan\stan\src\stan/io/cmd_line.hpp(32): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data C:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan\stan\src\stan/lang/rethrow_located.hpp(117): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data C:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan\stan\src\stan/model/indexing/rvalue_index_size.hpp(20): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data C:\Users\ADMINI~1\AppData\Local\Temp\3\pystan_d0i2q6os\stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_3508975502107987478.cpp(5153): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -IC:\Users\ADMINI~1\AppData\Local\Temp\3\pystan_d0i2q6os -IC:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan -IC:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan\stan\src -IC:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan\stan\lib\stan_math -IC:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan\stan\lib\stan_math\lib\eigen_3.3.3 -IC:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan\stan\lib\stan_math\lib\boost_1.69.0 -IC:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pystan\stan\lib\stan_math\lib\sundials_4.1.0\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\core\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python39\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /EHsc /TpC:\Users\ADMINI~1\AppData\Local\Temp\3\pystan_d0i2q6os\stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_3508975502107987478.cpp /FoC:\Users\ADMINI~1\AppData\Local\Temp\3\pystan_d0i2q6os\Users\ADMINI~1\AppData\Local\Temp\3\pystan_d0i2q6os\stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_3508975502107987478.obj /EHsc -DBOOST_DATE_TIME_NO_LIB /std:c++14" failed with exit status 2 [end of output]

algomaschine avatar Feb 01 '22 10:02 algomaschine

Tryout the new python wheel it should save you the trouble of compiling it yourself https://github.com/facebook/prophet/actions/runs/1621453882

John98Zakaria avatar Feb 28 '22 23:02 John98Zakaria

See https://github.com/facebook/prophet/issues/2107#issuecomment-1133927696

tcuongd avatar May 22 '22 16:05 tcuongd

This has been resolved in prophet 1.1. You can now pip install prophet directly from PyPI on Windows

akosfurton avatar Jun 27 '22 14:06 akosfurton