WillKoehrsen / Data-Analysis

Data Science Using Python
https://medium.com/@williamkoehrsen/
MIT License
5.16k stars 3.64k forks source link

Jupyter does not recognize fbprophet #19

Closed VictorHM closed 5 years ago

VictorHM commented 5 years ago

Hi all, I configured the system and installed the required libraries. Doing so in a virtual environment. So, I activate the environment to have libraries available and then try to run Jupyter opening the notebook I want to work with using this command:

jupyter notebook D:\Projects\stocker\Stocker_test.ipynb

being stocker the folder in which I downloaded Stocker files. However, if fails and does not recognises fbprophet. error_fbprophet

The message is "ModuleNotFoundError: No module named 'fbprophet'". Any suggestion how to solve this? Other libraries seem to be loading properly. Thanks

VictorHM commented 5 years ago

Update: I didn't have much time to put on this, but I have some extra details and doubts that could help others to understand the problem.

First of all, I can run fbprophet through an interactive session, so it seems to indicate that the libraries are installed. however, it does not load in Jupyter and I saw that Jupyter could be running IPython as the kernel for Python. So that makes think about a few questions I don't have an answer to:

Thank you very much!

QSCTech-Sange commented 5 years ago

I don' think you have installed fbprophet successfully. It really struggles me when installing it.

I solved it by using “conda install -c conda-forge fbprophet” in conda. I'm not sure it will help you, but it works fine on my laptop.

Hope u can solve it soon.

WillKoehrsen commented 5 years ago

Check to make sure that you have all the packages correctly installed. fbprophet can be difficult to get working, so you might want to look at the documentation or search around the web for your error.

If you can run fbprophet in a terminal Python session, then you probably have it installed but I don't know why Jupyter would not be able to find it. Make sure to use the same version of Python in Jupyter as in the terminal!