[英]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,沒有任何問題。
首先在您的 Windows 機器中安裝 Anaconda 或 miniconda,並將 conda python 路徑添加到 env 變量作為默認 python。
打開命令提示符並運行以下命令。
創建 conda 虛擬環境(可選)
conda create -n v-env python=3.7 activate v-env
安裝 c++ 編譯器
conda install libpython m2w64-toolchain -c msys2
libpython 將自動在PYTHONPATH\Lib\distutils
中為您創建和設置distutils.cfg
文件,但如果失敗,請使用以下說明手動設置
[可選的]
使用文本編輯器(例如記事本、記事本++)創建distutils.cfg
並將以下行添加到該文件中。
[build] compiler=mingw32
安裝依賴項
conda install numpy cython -c conda-forge conda install matplotlib scipy pandas -c conda-forge
安裝 PyStan
pip install pystan or conda install pystan -c conda-forge
安裝 Ephem
conda install -c anaconda ephem
安裝 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
:
並運行
conda install -c conda-forge fbprophet -y
我剛剛在這里嘗試過(在 Windows 10 64 位上),它運行良好。
使用
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
我遇到了同樣的問題,我的解決方案是:-
用Python3.5創建新環境
conda create -n pht python=3.5 anaconda
使用命令安裝 Prophet。
conda install -c conda-forge fbprophet
我沒有安裝“gcc”,盡管在安裝 Prophet 之前有人建議這樣做。
我在 Windows 10 機器上使用Python 3.8.5
和conda 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.