[英]Pystan -- Library\\mingw-w64\\bin\\gcc.exe' failed with exit code 1
I would like to test orbit-ml package but I have same issues with pystan My settings are: Windows10, Anacaonda, Python 3.7 (or 3.8) When I run this demo code:我想测试 orbit-ml 包,但我与 pystan 有同样的问题 我的设置是:Windows10、Anacaonda、Python 3.7(或 3.8) 当我运行此演示代码时:
import pystan
model_code = 'parameters {real y;} model {y ~ normal(0,1);}'
model = pystan.StanModel(model_code=model_code)
y = model.sampling().extract()['y']
y.mean() # with luck the result will be near 0
I had this error: CompileError: command 'C:\Users\XXX\Anaconda3\envs\orbit-ml-py37\Library\mingw-w64\bin\gcc.exe' failed with exit code 1我有这个错误:CompileError: command 'C:\Users\XXX\Anaconda3\envs\orbit-ml-py37\Library\mingw-w64\bin\gcc.exe' failed with exit code 1
I installed orbit-ml following the official documentantion.我按照官方文档安装了 orbit-ml。 I had problem with pystan (MSVC compiler is not supported) and I followed step by step the documentation link我遇到了 pystan 的问题(不支持 MSVC 编译器),我一步一步地按照文档链接
After that no warning on MSVC but the code stops with this error:之后 MSVC 上没有警告,但代码因此错误而停止:
CompileError: command 'C:\Users\XXX\Anaconda3\envs\orbit-ml-py37\Library\mingw-w64\bin\gcc.exe' failed with exit code 1 CompileError: 命令 'C:\Users\XXX\Anaconda3\envs\orbit-ml-py37\Library\mingw-w64\bin\gcc.exe' 失败,退出代码为 1
I don't understand.我不明白。 Do you have any suggestions?你有什么建议吗? All the best祝一切顺利
I am facing the very same issue.我面临着同样的问题。 However, I haven't been able to solve it.但是,我一直无法解决它。 Even if I look at the changes with new releases of pystan , I am getting an error which does not allow me to install stan.即使我查看新版本的pystan的变化,我也会收到一个不允许我安装 stan 的错误。 "ERROR: No matching distribution found for stan" “错误:找不到与 stan 匹配的分布”
There seems to be some dependency related problem.似乎存在一些依赖相关的问题。 Solving this could be a hard thing.解决这个问题可能是一件困难的事情。 If you want to get started, try the following如果您想开始,请尝试以下操作
Observations观察
From your code snippet, I have observed the following:从您的代码片段中,我观察到以下内容:
import pystan
does not work in recent versions (as per reference ) import pystan
在最新版本中不起作用(根据参考资料)StanModel
in the libraray.库中的StanModel
可能存在问题。 Check reference检查参考Suggestions建议
Few alternatives to get to started with other approaches by bypassing the process are:通过绕过该过程开始使用其他方法的替代方案很少:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.