prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Pip install fbprophet is not working

Open AAthirasurendran opened this issue 3 years ago • 11 comments

Screenshot 2021-06-10 at 4 52 34 PM

I am not able to install fbprophet. System is macOS Catalina. Python 3.8. I had pip installed pystan 2.18.0.0. Thank you

AAthirasurendran avatar Jun 10 '21 11:06 AAthirasurendran

Hey,

Prophet got a new name and after version 1 changed the way we install it.

try pip install prophet

Okroshiashvili avatar Jun 12 '21 09:06 Okroshiashvili

I tried pip install fbprophet and also pip install prophet Still same Screenshot 2021-06-16 082208

Screenshot 2021-06-16 082308

taranggpt6 avatar Jun 16 '21 02:06 taranggpt6

I tried pip install fbprophet and also pip install prophet Still same Screenshot 2021-06-16 082208

Screenshot 2021-06-16 082308

I think when you run pip install prophet it uses cached version of fbprophet. Try creating new clean environment and then run pip install prophet

Or in the same environment run pip install prophet --no-cache-dir

Okroshiashvili avatar Jun 16 '21 13:06 Okroshiashvili

So now created a new fresh environment with python 3.7 only, ran pip install prophet and now getting error

pystan._api DLL load failed.

This error i was already getting in my different env I had created earlier while experimenting prophet installation and now getting same in this new env too.

taranggpt6 avatar Jun 16 '21 14:06 taranggpt6

After installing MinGW as per

https://stackoverflow.com/questions/60388880/import-pystan-api-failedimporterror-dll-load-failed-the-specified-module-cou

was getting the same errors. after running conda install libpython m2w64-toolchain -c msys2 finally I am able to install prophet using pip install prophet but Prophet and FBprophet is same?? I don't see Prophet on the official page, there it is Fbprophet only. Can you please clarify?

Update: conda install libpython m2w64-toolchain -c msys2 actually resolved two diff-2 errors in two diff isolated python environments, 1st is attached above and second was

pystan._api DLL Load Failed

Finally, now I have fbprophet and prophet installed in diff-2 environments.

taranggpt6 avatar Jun 16 '21 17:06 taranggpt6

@taranggpt6 Prophet has an excellent documentation

In your fresh environment, run these two, one by one. Keep the order.

pip install pystan==2.19.1.1

pip install prophet

Okroshiashvili avatar Jun 17 '21 05:06 Okroshiashvili

@taranggpt6 Prophet has an excellent documentation

In your fresh environment, run these two, one by one. Keep the order.

pip install pystan==2.19.1.1

pip install prophet

Hi, sorry for the delay in reply. I am still getting error. And I want to install greykite 0.1.1 also. I guess for that I need fbprophet only. Thanks in advance. Uploading Screenshot 2021-06-22 at 10.16.36 AM.png…

AAthirasurendran avatar Jun 22 '21 04:06 AAthirasurendran

I also met this problem, and I found it is caused by the -arch option in gcc in this thread https://github.com/giampaolo/psutil/issues/1832.

The solution is export ARCHFLAGS="-arch x86_64"; pip install pystan==2.19.1.1; pip install prophet

uncle-vincent avatar Mar 24 '22 15:03 uncle-vincent

In your fresh environment, run these two, one by one. Keep the order.

pip install pystan==2.19.1.1

pip install prophet

Just wanted to tune in and say this issue persists. (and the above solution at least didn't work for me!) I know there is a workaround, but thought you guys would appreciate the heads up! FYI - I am running Windows 10, not Mac OS

miraep8 avatar Apr 27 '22 21:04 miraep8

This issue has been further cleaned up in Prophet v1.1

No more need for pystan, the models are precompiled in the build

pip install --upgrade prophet to upgrade to 1.1

akosfurton avatar Jun 27 '22 14:06 akosfurton

I tried pip install fbprophet and also pip install prophet Still same Screenshot 2021-06-16 082208 Screenshot 2021-06-16 082308

I think when you run pip install prophet it uses cached version of fbprophet. Try creating new clean environment and then run pip install prophet

Or in the same environment run pip install prophet --no-cache-dir

Thank you. It worked with -> pip install prophet --no-cache-dir

hasmit-coder avatar Jul 16 '22 03:07 hasmit-coder

Closing due to PyStan no longer being a dependency of prophet

WardBrian avatar Oct 12 '23 13:10 WardBrian