windows10安装Prophet

阅读PyStan安装手册

  1. 安装MingW-w64,从官网下载安装

MingW-w64必须安装,不然会报错


error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++

2.配置distutils.cfg

在PYTHONPATH\Lib\distutils文件夹下新建文件distutils.cfg,并添加下面几行:

[build]
compiler=mingw32

注意:mingw32不能改成mingw64,即使你安装的是64位的mingw64
3.安装PyStan

pip install PyStan

A:/SoftWare/mingw-w64/x86_64-6.4.0-posix-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.4.0/include/c++/cmath:1157:11: error: '::hypot' has not been declared
       using ::hypot;
               ^~~~~
    error: Command "gcc -g -DDEBUG -DMS_WIN64 -O0 -Wall -Wstrict-prototypes -DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -I"a:\program files\python36\include" -I"a:\program files\python36\include" -c pystan/_misc.cpp -o build\temp.win-amd64-3.6\Release\pystan\_misc.o" failed with exit status 1

    ----------------------------------------
Command ""a:\program files\python36\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\mbshq\\AppData\\Local\\Temp\\pip-install-1kxvffea\\pystan\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\mbshq\AppData\Local\Temp\pip-record-oyqcqiqm\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\mbshq\AppData\Local\Temp\pip-install-1kxvffea\pystan\

如果报上面的错,在错误提示中错误的那一行前面加

#define hypot _hypot

或者将错误提示中的hypot改为_hypot

using ::_hypot;
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据引用\[1\]中的信息,安装prophet需要先安装pystan。在Windows下安装pystan时,可以按照官方文档的建议使用conda进行安装。具体的安装步骤如下: 1. 打开命令行窗口,执行以下命令安装C++编译器:conda install libpython m2w64-toolchain -c msys2 2. 安装prophet的依赖库:conda install numpy cython matplotlib scipy pandas pystan -c conda-forge 3. 安装pystan:conda install pystan -c conda-forge 4. 安装prophet:pip install fbprophet 根据引用\[3\]中的信息,也可以直接使用conda进行安装:conda install fbprophet -c conda-forge。这种方式会自动安装pystan的依赖。 需要注意的是,根据引用\[2\]中的描述,安装过程可能会遇到一些问题,例如python停止工作的窗口。在这种情况下,可以尝试卸载并重新安装另一个版本的anaconda,或者安装Visual Studio 2015等C++编译环境。 总结起来,安装prophet时需要安装pystan和其它一些依赖库,具体的安装步骤可以根据引用中提供的信息进行操作。 #### 引用[.reference_title] - *1* *3* [win7 安装prophet](https://blog.csdn.net/g1027785756/article/details/96327424)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [历时5天,终于安装prophet!](https://blog.csdn.net/weixin_47966757/article/details/109419084)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值