Forums

fbprophet forecasting tool and flask app

Hi!!

I have a software that uses the package fbprophet, developed by Facebook Inc. After install this package using the Bash Console, I have created the web app in Pythonanywhere. When I import fbprophet in flask_app.py, appears the following error:

"""""""""""""""""""""""""""""

Error running WSGI application

ModuleNotFoundError: No module named 'fbprophet'

"""""""""""""""""""""""""""""

Apparently, I have installed correctly fbprophet, because in the Bash Console I can open a python console and import it without no problem. So what I don't understand is why from the Bash Console I can use it and not when I run flask_app.py on the server (appears that the module is not found).

Has anyone ever import fbprophet in PythonAnywhere? And for those that has not used Prophet, could yout tell me how I can solve it?

Please tell how I could solve it, I am new in web apps.

thank you so much in advance!

what version of python were you running from the bash console, vs the webapp? and which pip did you use to install the package? (eg: pip vs pip3.7)

Okay!! You are right!! Now I can open the APP. By the moment I have no used the library due to another error, but seems I can import it without any problem.

Thank you so much for the suggestion!!