2

I've been trying to install prophet through

pip install pystan
pip install prophet

but I keep getting errors. Then, I tried using conda to install prophet using:

conda install -c conda-forge prophet

But I keep getting errors such as,

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

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

  - prophet

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

What can I do to fix this?

ronaldh
  • 33
  • 1
  • 4
  • You haven't provided the error messages. *I keep getting errors* doesn't tell us what went wrong, so we can't suggest how to fix it. So I have to guess. If you are trying to install `pystan` on a Windows machine, one of the error messages reports the problem as: *WARNING:pystan:MSVC compiler is not supported.* Which is confirmed by the `pystan` documentation, which says that it does not run on Windows. – BoarGules Mar 28 '21 at 12:39

2 Answers2

1

Update: The Conda installation should now be working. The prophet package now has a feedstock on Conda Forge.


The Prophet package was in the midst of transitioning from going by the name fbprophet in Python to what OP reports in the documentation, simply prophet. While this had already been updated in the docs and a PyPI version had been pushed, there was a backlog of review requests on the conda-forge/staged-recipes repository, where the prophet package was awaiting review.

In the interim, one should have continued to use the instructions from the previous documentation, namely

conda install -c conda-forge fbprophet

and referred to the module by the name fbprophet.

merv
  • 67,214
  • 13
  • 180
  • 245
  • But that is not in the instructions here: https://facebook.github.io/prophet/docs/installation.html It downloads, but my code still said no module found – ronaldh Mar 28 '21 at 20:53
0

I tried install prophet using

python -m pip install prophet

It helped me

Andrey Nikitin
  • 43
  • 1
  • 1
  • 5
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 17 '23 at 21:28