You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please do refer me to the related ticket if one exists, I couldn't find one, apologies if this is a dup!
My issue
I'm working in Python. I have successfully installed Prophet (together with all the prerequisites such as pystan), I am able to import it when I run a *.py script from command line:
#!/usr/bin/python
import pystan
import pandas as pd
from fbprophet import Prophet
-- executing this produces no errors.
But when I try to import it in a jupyter notebook cell, I simply get ModuleNotFoundError: No module named 'fbprophet' .
I can see from Jupyter that it is recognized as installed package:
More info about my installation
My OS:
ProductName: Mac OS X
ProductVersion: 10.15.5
BuildVersion: 19F101
Python / Anaconda:
Python 3.7.6
anaconda-client 1.7.2
anaconda-navigator 1.9.12
anaconda-project 0.8.3
Prophet-related packages' versions:
fbprophet 0.6
holidays 0.10.2
pystan 2.19.1.1
The text was updated successfully, but these errors were encountered:
I think what's happening here is that you have at least 2 installations of Python, and fbprophet is installed in the system python but not in the python that Jupyter is using (which I'm guessing is the Anaconda python). Anaconda will usually set up its own python environments, so that you can manage multiple installs with potentially different versions. pip will only install to the system python. To install fbprophet in the Anaconda you can use
conda install -c conda-forge fbprophet
To verify that these are different python installs, you could try
import sys
print(sys.version)
in your command line python, and in Jupyter, and see if they are different.
Please do refer me to the related ticket if one exists, I couldn't find one, apologies if this is a dup!
My issue
I'm working in Python. I have successfully installed Prophet (together with all the prerequisites such as pystan), I am able to import it when I run a *.py script from command line:
-- executing this produces no errors.
But when I try to import it in a jupyter notebook cell, I simply get
ModuleNotFoundError: No module named 'fbprophet'
.I can see from Jupyter that it is recognized as installed package:
More info about my installation
My OS:
Python / Anaconda:
Prophet-related packages' versions:
The text was updated successfully, but these errors were encountered: