PyMC3:Theano的cxflags配置不正确

2024-05-21 05:01:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在运行pymc3中的find_MAP()。它给了我同样的错误。在

/tmp/ccVQvbdJ.s: Assembler messages:
/tmp/ccVQvbdJ.s:1326: Error: no such instruction: `vfnmadd312sd .LC14(%rip),%xmm2,%xmm1'
/tmp/ccVQvbdJ.s:1327: Error: no such instruction: `vfnmadd312sd .LC15(%rip),%xmm2,%xmm1'
/tmp/ccVQvbdJ.s:1626: Error: no such instruction: `vfnmadd312sd .LC14(%rip),%xmm2,%xmm1'
/tmp/ccVQvbdJ.s:1627: Error: no such instruction: `vfnmadd312sd .LC15(%rip),%xmm2,%xmm1'

这是python的例外:

^{pr2}$

我已经尝试了这里提到的各种步骤:https://stackoverflow.com/a/10894096/3413239尝试了各种cxflag,但是没有任何效果。在

因为我不熟悉TANNO和C++,我无法理解问题到底是什么。任何帮助将不胜感激。在

vfnmadd312sd .LC14(%rip), %xmn2, %xmn1是什么意思?这些是什么说明?我在/tmp/中有很多目录,但没有类似于/tmp/cczHyg7w.s的文件。这些文件的目的是什么?在

我安装了PyMC3,并随它一起安装了Theano。通过PyMC3安装ano会有问题吗?在

编辑

numpy和scipy配置有问题。到目前为止我所做的:

  • 卸载了numpy和scipy
  • 用正确的配置和到OpenBlas的链接重建numpy。Compiling numpy with OpenBLAS integration
  • 通过pip重新安装了scipy、THANO、pymc3 它仍然给我带来同样的问题。在

Tags: nonumpyerrorscipytmpripinstructionpymc3