How to install fbprophet for Python 3.7 (anaconda distribution)

白昼怎懂夜的黑 提交于 2020-12-13 00:44:26

问题


I attempted to use fbprophet for time series analysis using Python.

I ran from fbprophet import Prophet but got No module named 'fbprophet'

I think fbprophet is not part of packages that comes with anaconda distribution

I went ahead to install fbprophet but got this error message No module named 'fbprophet'

I am on Windows 10, 64 bits

I install anaconda distribution of anaconda 3.7

I have ran conda install -c conda-forge fbprophet and conda install -c conda-forge/label/cf201901 fbprophet on my anaconda prompt which it rolled endlessly

I have also ran pip install fbprohet which did not work as well

I ran pip list which worked but prophet or fbprophet not among the list

I have searched this site for relevant questions and tried all what I clues I got in it but did not work for me.


回答1:


Option 1

conda install -n [NameOfVEnv] -c conda-forge fbprophet

Where -c stands for "channel" which is

the locations where Navigator and conda look for packages. (Source)

and -n for "Name of environment".

I just tried here (on CentOS 7) and it worked fine.


Option 2

An alternative, if one is using Windows 10, is to access Anaconda Prompt for the environment that you are working with as admin:

And run

conda install -c conda-forge fbprophet

I just tried here (on Windows 10 64-bit) and it worked fine.


Option 3

Prophet is on PyPI, so you can use pip to install it (Source)

# bash
# Install pystan with pip before using pip to install fbprophet
$ pip install pystan
$
$ pip install fbprophet

You may need to install dependencies (in both options), but it asks you in the prompt window. If it appears, you will need to enter Y.




回答2:


you just search the wrong letter, please enter pip search fbprophet,in the way, i can get two



来源:https://stackoverflow.com/questions/55078483/how-to-install-fbprophet-for-python-3-7-anaconda-distribution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!