如何为Python 3.7安装fbprophet(anaconda发行版) [英] How to install fbprophet for Python 3.7 (anaconda distribution)
问题描述
我尝试使用 fbprophet
通过Python进行时间序列分析.
我从fbprophet import Prophet 运行了,但是得到
没有名为"fbprophet"的模块
我认为 fbprophet
不是anaconda发行版附带的软件包的一部分
我继续安装 fbprophet
,但收到此错误消息没有名为'fbprophet'的模块
我使用的是Windows 10(64位)
我安装了anaconda 3.7的anaconda发行版
我在anaconda提示符下运行了 conda install -c conda-forge fbprophet
和 conda install -c conda-forge/label/cf201901 fbprophet
,它不断滚动
我还运行了 pip install fbprohet
,但效果不佳
我运行了 pip列表
,但 prophet
或 fbprophet
不在列表中
我已经在该网站上搜索了相关问题,并尝试了所有从中获得的线索,但对我没有用.
选项1
conda install -n [NameOfVEnv] -c conda-forge fbprophet
然后运行
conda install -c conda-forge fbprophet
我刚刚在这里尝试过(在Windows 10 64位系统上),并且工作正常.
选项3
先知在PyPI上,因此您可以使用pip进行安装( 解决方案
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
.
这篇关于如何为Python 3.7安装fbprophet(anaconda发行版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!