question

GrahamBenson-6517 avatar image
0 Votes"
GrahamBenson-6517 asked romungi-MSFT commented

Unable to import prophet

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GrahamBenson-6517 Did the below suggestion help to import the library?

0 Votes 0 ·

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered romungi-MSFT commented

@GrahamBenson-6517 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.





image.png (84.5 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your response @romungi-MSFT

Yes, I was able to install prophet and I can import the Prophet module.

Attached is the printout from running the above pip command which shows some errors were generated. Is this a normal outcome of installing prophet?196480-install-prophet.txt


0 Votes 0 ·
romungi-MSFT avatar image romungi-MSFT GrahamBenson-6517 ·

Seems like a package dependency issue of prophet. From the logs the package convertdate seems to have been installed later though.

0 Votes 0 ·