Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to install on Mac? #2420

Closed
ravi160822 opened this issue Apr 28, 2023 · 15 comments
Closed

how to install on Mac? #2420

ravi160822 opened this issue Apr 28, 2023 · 15 comments

Comments

@ravi160822
Copy link

neither conda nor pip worked, Stan also giving error

@donggu-kang
Copy link

Hi. Please provide all or part of the error message you are experiencing.
It works normally on the latest stable version of macOS.

@cgobat
Copy link

cgobat commented May 5, 2023

What happens when you follow the Installation in Python guide in the documentation?

@ale-dg
Copy link

ale-dg commented May 8, 2023

Hi,

I am having the same issue... this is the error when using python -m pip install prophet:

RuntimeError: CmdStan failed to install in repackaged directory
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for prophet
Failed to build prophet
ERROR: Could not build wheels for prophet, which is required to install pyproject.toml-based projects

If I try to install with Conda, this is the error:

PackagesNotFoundError: The following packages are not available from current channels:

  • prophet

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

I have installed both CmdStan and CmdStanPy, and the error persists though.

Thanks

Best,

@ravi160822
Copy link
Author

yes same error Stan error
and conda also not working
when I attempt to other repo like darts it also fail, because it has prophet has dependency

@AlexandroLuis
Copy link
Contributor

AlexandroLuis commented May 10, 2023

Did you all try to install from it's source?

git clone https://github.com/facebook/prophet.git
cd prophet
pip install .

or

pip install git+https://github.com/facebook/prophet.git

it should work

@ravi160822
Copy link
Author

I have attempted installing from source also, but I get the same CmdStan error

@ale-dg
Copy link

ale-dg commented May 11, 2023

Did you all try to install from it's source?

git clone https://github.com/facebook/prophet.git cd prophet pip install .

or

pip install git+https://github.com/facebook/prophet.git

it should work

Yes, I've tried and the same error happens. There is another threat in #2402 where a similar issue happens in Windows. I have added the macOS issues there as well.

Best

@AlexandroLuis
Copy link
Contributor

CmdStan

try to run pip install cmdstanpy and then install the prophet

@ale-dg
Copy link

ale-dg commented May 11, 2023

I have tried it... the error still happens...

@ghost
Copy link

ghost commented May 23, 2023

I get the same error too. Is it to do with MacOS version or Python3 Version?

@k-hui
Copy link

k-hui commented May 25, 2023

I found that this can help

Once upon a time I stumbled with this issue. If you're using macOS go to Macintosh HD > Applications > Python3.x folder (or whatever version of python you're using) > double click on "Install Certificates.command" file.

https://stackoverflow.com/a/53310545

@ale-dg
Copy link

ale-dg commented May 25, 2023

I found that this can help

Once upon a time I stumbled with this issue. If you're using macOS go to Macintosh HD > Applications > Python3.x folder (or whatever version of python you're using) > double click on "Install Certificates.command" file.

https://stackoverflow.com/a/53310545

Isn't it for issues when pulling repos?! The issue with Prophet is that it doesn't build the wheel correctly, not that it can't be reached online

@iamjazzar
Copy link

From #2438 (comment)

I had the same issue and it appears that the new version of MacOS (13.4) specifically fails to install CmdStan 2.26.1. I created a fork (iamjazzar/prophet) where I changed the CmdStan version to 2.32.0 and the installation works. The only catch here is that I'm using my own repo to install the package:

-e "git+https://github.com/iamjazzar/prophet.git@0591532#egg=prophet&subdirectory=python"

I'm not sure how that would affect the behavior, but I'm happy to open a PR if deems fit.

@dadwin
Copy link

dadwin commented Sep 26, 2023

this #2002 (comment) may help you on Apple M1, without rosetta

@WardBrian
Copy link
Collaborator

We believe 1.1.5 has resolved this, pip install prophet will now use M1/M2 wheels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants