Theano fails due to NumPy Fortran mixup under Ubuntu

后端 未结 4 855
灰色年华
灰色年华 2021-01-01 23:21

I installed Theano on my machine, but the nosetests break with a Numpy/Fortran related error message. For me it looks like Numpy was compiled with a different Fortran versio

4条回答
  •  盖世英雄少女心
    2021-01-02 00:08

    I had the same problem, and after reviewing the source code, user212658's answer seemed like it would work (I have not tried it). I then looked for a way to deploy user212658's hack without modifying the source code.

    Put these lines in your theanorc file:

    [blas]
    ldflags = -lblas -lgfortran
    

    This worked for me.

提交回复
热议问题