Skip to content

Instantly share code, notes, and snippets.

@thewisenerd
Created November 16, 2022 21:34
Show Gist options
  • Save thewisenerd/52f937d01b06287ccf21a05a118e74ad to your computer and use it in GitHub Desktop.
Save thewisenerd/52f937d01b06287ccf21a05a118e74ad to your computer and use it in GitHub Desktop.
installing facebook prophet on macOS arm64
brew install [email protected]
python3.11 -m pip install cmdstanpy
python3.11 -m pip install prophet # this should work ? if it dont, good luck lmao
# at this point, you might get an error
# RuntimeError: Error during optimization! Command '/opt/homebrew/lib/python3.11/site-packages/prophet/stan_model/prophet_model.bin
# dyld[71677]: Library not loaded: '@rpath/libtbb.dylib'
cd /opt/homebrew/lib/python3.11/site-packages/prophet/stan_model
install_name_tool -add_rpath @executable_path/cmdstan-2.26.1/stan/lib/stan_math/lib/tbb prophet_model.bin
# 'Prophet.fit' should no longer throw a fit haha
@thewisenerd
Copy link
Author

cmdstanpy==1.0.8
prophet==1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment