stan-dev / httpstan

HTTP interface to Stan, a package for Bayesian inference.
ISC License
39 stars 15 forks source link

Unable to find installation candidates for httpstan #639

Closed scholarazwa closed 1 year ago

scholarazwa commented 1 year ago

Hi. I am trying to install pystan via poetry and it always get stuck at installing httpstan, no matter what the version is.

Here what I did: poetry add pystan="3.5.0" -> Installing httpstan (4.8.2): Failed poetry add pystan="3.6.0" -> Installing httpstan (4.9.1): Failed poetry add pystan="3.7.0" -> Installing httpstan (4.10.1): Failed

The error says "Unable to find installation candidates for httpstan (4.x.x)"

Can someone help me on how to resolve this? Thank you.

Btw, I am on an M2 Apple Silicon Macbook Air.

riddell-stan commented 1 year ago

Thanks to the work of @mikediessner we now have an FAQ item for this: https://pystan.readthedocs.io/en/latest/faq.html#how-can-i-run-pystan-on-macos-with-apple-silicon-chips-apple-m1-m2-etc

scholarazwa commented 1 year ago

Thanks. Let me try that and report back.

scholarazwa commented 1 year ago

I have tried the suggested solution and it works. Just a few notes for others in the future:

Next, to install httpstan into an existing project, just copy the output files above into your project folder , then do:

In my case, I needed the above packages in order to make Prophet work. So now I can simply do: