问题描述
我的版本在Windows 10上无法通过以下消息在anaconda中安装fbprophet时失败:
My build keeps failing on windows 10 for installing fbprophet in anaconda with the following message:
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
conda install -c conda-forge fbprophet
有人在Windows 10上成功安装了fbprophet吗?如果是,请给出步骤.
Has anyone successfully installed fbprophet on Windows 10? If yes, then please give the steps.
谢谢.我也尝试了pip安装,但是没有运气.我有一台Mac,设法在其上安装了fbprophet,没有任何问题.
Thanks.I tried pip install as well but no luck. I have a Mac and managed to install fbprophet on it without any issues.
推荐答案
1)首先在Windows计算机中安装Anaconda或miniconda,然后将conda python路径添加到env变量作为默认python.
1)First install Anaconda or miniconda in your Windows machine and add conda python path to env variable as default python.
2)打开命令提示符并运行以下命令.
2)Open your command prompt and run following commands.
创建一个conda虚拟环境(可选)
Create a conda virtual environment (optional)
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文件,但是如果失败,请按照以下说明手动进行设置
libpython will automatically create and setup distutils.cfg file for you in PYTHONPATH\Lib\distutils, but if that is failed use the following instructions to setup it manually
使用文本编辑器(例如记事本,notepad ++)创建distutils.cfg,并将以下行添加到该文件中.
create distutils.cfg with text editor (e.g. notepad, notepad++) and add the following lines to that file.
[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
安装fbprophet
Install fbprophet
pip install fbprophet
or
conda install -c conda-forge fbprophet
这篇关于在Windows 10上安装fbprophet Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!