无法使用 Conda 安装 FB Prophet (Mac OS)

Unable to Install FB Prophet Using Conda (Mac OS)

我正在尝试安装 FB 的 Prophet 包以在 Jupyter 中使用,我通过 Anaconda 启动它,但是每次尝试都会出错。我开始在FB的Git page and used 'conda install -c conda-forge prophet', however, I continuously get an error that I need to manually a series of files (hijri, ephem, lunarcalendar, etc.). I have researched as many links as I could, including this long exchange on GitHub,但一直找不到解决办法。在我最近安装 Prophet 的尝试中,我只是得到一个连续的“解决环境”循环。

我是 Anaconda 的新用户,并不十分熟悉终端中的交互。如果有人能就我可以做的不同的事情提供见解,将不胜感激。

如果我可以提供更多详细信息,请告诉我。谢谢。

最好创建一个新环境,而不是将新包安装到基础环境中 - 基础环境已经包含很多包,所以如果你引入任何新东西,你很容易遇到很多依赖性问题 conda 试图弄清楚每个包的哪个版本将与所有其他包兼容。

创建一个名为 myenv 的新环境,您要在其中使用包 prophetjupyter(及其所有依赖项),并从 conda-forge频道,做:

conda create -n myenv -c conda-forge prophet jupyter

要在此环境中使用 Jupyter,只需在启动 Jupyter 之前激活环境:

conda activate myenv
jupyter notebook

有关使用 conda 环境的更多信息,请参阅 the documentation