Hi,
I failed to install fbprophet with streamlit, or vice-versa.
error during installation
TLDR steps that I took
create and activate new env using Anaconda
use conda to install pip
pip install streamlit
conda install fbprophet.
fbprophet → python[version=‘2.7.|3.5. |3.6.*|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0’]
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
is this the problem? the python version 3.8.1 is too new for both libraries?
Thanks.
1 Like
documenting it and managed to solved it doing the following.
Not sure the source of the problem is 3.7 as previously I was using 3.8.1(latest)
TLDR
conda create --name streamprophet37 python=3.7 pip #use python 3.7
conda activate streamprophet #activate the environment
conda install libpython m2w64-toolchain -c msys2 # install compiler
conda install numpy cython matplotlib scipy pandas -c conda-forge #ensure dependencies
pip install pystan
pip install fbprophet
more info:
https://pystan.readthedocs.io/en/latest/windows.html
full installation
2 Likes
Thanks Andrew!
I did follow the installation steps you suggested:
conda create --name streamprophet37 python=3.7 pip #use python 3.7
conda activate streamprophet #activate the environment
conda install libpython m2w64-toolchain -c msys2 # install compiler
conda install numpy cython matplotlib scipy pandas -c conda-forge #ensure dependencies
pip install pystan
pip install fbprophet
… Unfortunately I’m still facing the same errors, which I pasted in the pastebin below:
I’m about to switch to Linux, which should (hopefully!) get rid of this issue!
Thanks,
Charly
okld
October 28, 2020, 10:20pm
4
Hey @Charly_Wargnier ,
On Windows I suggest to install most of your packages through conda to avoid building error nightmares.
And fortunately, fbprohet provides a conda package you can install like so:
conda install -c conda-forge fbprophet
Optionally (because it worked with pip), you could also install pystan using conda, but first do a pip uninstall pystan if you want to do the switch.
conda install -c conda-forge pystan
Btw, even in Prophet documentation, they tell you that The easiest way to install Prophet in Windows is in Anaconda
1 Like
Thanks Synode! No error when installed that way via miniconda, which is great!
Now when I launch Streamlit (installed via pip install streamlit) I still got a ModuleNotFoundError: No module named 'fbprophet':
It’s worth noting that the environment within which I’m installing Streamlit is virtualenv (I’m enabling it this way ->
virtualenv venv & call venv\Scripts\activate.bat)
I believe this may be the culprit and I’d need a dedicated conda environment to make it work?
I’m off to bed now, I’ll try tmrw
Thanks,
Charly
okld
October 29, 2020, 12:50am
6
This is right, as you’ve installed all your dependencies inside your conda env streamprophet, you’ll have to install it there as well. A simple conda activate streamprophet will do before doing your pip install streamlit
1 Like
That worked! @okld saving the day again!
1 Like