Unable to import prophet

Graham Benson 126 Reputation points
2022-04-25T00:21:10.067+00:00

I am attempting to run Prophet (fbprophet) in an Azure Notebook. I have installed prophet using the terminal window and it is listed as an installed package (prophet (0.1.1.post1)).

When I attempt to import the Prophet module using either of the following commands in a Notebook cell I receive the error message; "ModuleNotFoundError: No module named 'prophet'"

from fbprophet import Prophet
or
from prophet import Prophet

Could someone please assist...thank you.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,334 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2022-04-25T10:22:14.557+00:00

    @Graham Benson Please try installing the package using the notebook cells instead of terminal window since you are running different kernels for the notebook session.
    Please try the following from the cell and try to import the package.

    %pip install Prophet  
    

    Worked in my notebook as seen below.

    196010-image.png

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.