python - 在 Windows 10 上安装 fbprophet Python
问题描述
我的构建在 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 将自动
distutils.cfg
为您创建和设置文件PYTHONPATH\Lib\distutils
,但如果失败,请使用以下说明手动设置[可选的]
使用
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
推荐阅读
- javascript - WordPress 错误:即使在 JS 文件入队后,$(...).carousel 也不是函数
- r - r:链接 Plotly 动画视图
- html - 无法让图像出现在背景前面
- php - 使用 phpmailer 显示 json_encode 警报时出错
- python - 如何计算Python列表中特定列表的出现次数
- windows - 如何使用 PowerShell 获取已安装 Windows 程序的逗号分隔表?
- c++ - 如何转换 boost::fusion::vector 的类型?
- c# - 是任务和任务
可互换? - relational-algebra - 代数中公共属性的自然连接和简单连接的区别
- java - 为 Spring RestTemplate POST 获得 400