簡體   English   中英

在 Windows 10 上安裝 fbprophet Python

[英]Installing fbprophet Python on Windows 10

我的構建在 Windows 10 上一直失敗,無法在 anaconda 中安裝 fbprophet,並顯示以下消息:

ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::automat-0.7.0-py_1'.
CondaError: Cannot link a source that does not exist. C:\Users\bharat.c.ruparel\AppData\Local\Continuum\anaconda3\Scripts\conda.exe

給出的命令是:

conda install -c conda-forge fbprophet

有人在 Windows 10 上成功安裝了 fbprophet 嗎? 如果是,那么請給出步驟。

謝謝。 我也嘗試了 pip install 但沒有運氣。 我有一台 Mac 並設法在其上安裝 fbprophet,沒有任何問題。

  1. 首先在您的 Windows 機器中安裝 Anaconda 或 miniconda,並將 conda python 路徑添加到 env 變量作為默認 python。

  2. 打開命令提示符並運行以下命令。

  3. 創建 conda 虛擬環境(可選)

     conda create -n v-env python=3.7 activate v-env
  4. 安裝 c++ 編譯器

    conda install libpython m2w64-toolchain -c msys2

    libpython 將自動在PYTHONPATH\Lib\distutils中為您創建和設置distutils.cfg文件,但如果失敗,請使用以下說明手動設置

    [可選的]

    使用文本編輯器(例如記事本、記事本++)創建distutils.cfg並將以下行添加到該文件中。

     [build] compiler=mingw32
  5. 安裝依賴項

    conda install numpy cython -c conda-forge conda install matplotlib scipy pandas -c conda-forge
  6. 安裝 PyStan

     pip install pystan or conda install pystan -c conda-forge
  7. 安裝 Ephem

     conda install -c anaconda ephem
  8. 安裝 fbprophet

     pip install fbprophet or conda install -c conda-forge fbprophet

我還面臨在沒有 conda 的 Windows 10 中安裝 facebook 先知問題。 但是,我們可以解決它。 首先,卸載任何pystan,fbprophet。 然后按照以下步驟,

python.exe -m pip install pystan==2.17.1.0
python.exe -m pip install fbprophet==0.6   
python.exe -m pip install --upgrade fbprophet

謝謝,tsj

我有同樣的問題。 但是在我按照以下步驟操作后它可以工作:

提示安裝 Ephem:

conda install -c anaconda ephem

安裝 Pystan:

conda install -c conda-forge pystan

最后安裝 Fbprophet

conda install -c conda-forge fbprophet

以管理員身份訪問您正在使用的環境的Anaconda Prompt

以管理員身份訪問 Anaconda Prompt

並運行

conda install -c conda-forge fbprophet -y

我剛剛在這里嘗試過(在 Windows 10 64 位上),它運行良好。


這是先知使用 Anaconda 的建議

使用conda install gcc設置 gcc。 安裝 Prophet 最簡單的方法是通過 conda-forge: conda install -c conda-forge fbprophet

2021年最新安裝代碼:

pip install pystan==2.19.1.1 ,然后pip install prophet

另外,安裝后重啟你的 jupyter notebook

在沒有Conda, Win 10, Python 3.8.8 64 bit的情況下安裝。

pip3 install Cython

然后 安裝

重啟你的機器

安裝

pip3 install pystan==2.17.1.0

pip3 install fbprophet

這是我的解決方案。 我以前沒有使用過 conda-forge,因此閱讀本文會有所幫助。

  1. 確保 conda ≥4.9
conda --version
  1. 添加 conda forge 頻道
conda config --add channels conda-forge
conda --set channel_priority strict
  1. 安裝 gcc
conda install gcc
  1. 安裝先知
conda install -c conda-forge prophet

我在這里使用了先知文檔

我遇到了同樣的問題,我的解決方案是:-

用Python3.5創建新環境

conda create -n pht python=3.5 anaconda

使用命令安裝 Prophet。

conda install -c conda-forge fbprophet

我沒有安裝“gcc”,盡管在安裝 Prophet 之前有人建議這樣做。

我在 Windows 10 機器上使用Python 3.8.5conda 4.10.1 我能夠使用命令提示符(而不是管理員)在Anaconda 2.0.1中安裝先知,使用: conda install -c conda-forge fbprophet它需要一些時間才能弄清楚細節,正如您從下面的提示中看到的那樣,但最后它能夠安裝包。

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM