集群上的Theano安装问题

Theano installation problems on a cluster

我正在尝试在运行 "Red Hat Enterprise Linux Client release 5.10 (Tikanga)" 的集群节点上安装 Theano。我没有集群的管理员权限。因此,我在本地用户配置文件中安装了 Theano。以下是我安装的版本详情:

  1. The Python version is : Python 2.7.3
  2. The Numpy version installed on the cluster is: NumPy version 1.6.2
  3. GCC version: GCC 4.6.1
  4. nose version 1.3.4

我按照以下方式安装了Theano

  1. git clone git://github.com/Theano/Theano.git
  2. cd Theano; python2.7 setup.py install --user
  3. The installed Theano version is: 0.6.0

然后我尝试在 python2.7 控制台中运行 theano.test()。在出现以下错误之前,测试顺利运行了几分钟:

ERROR (theano.gof.opt): Optimization failure due to: local_dot_to_dot22
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/opt.py", line 1491, in process_node
    replacements = lopt.transform(node)
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/tensor/blas.py", line 1693, in local_dot_to_dot22
    return [_dot22(*node.inputs)]
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/op.py", line 537, in __call__
    no_recycling=[])
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/op.py", line 722, in make_thunk
    output_storage=node_output_storage)
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/cc.py", line 1043, in make_thunk
    keep_lock=keep_lock)
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/cc.py", line 985, in __compile__
    keep_lock=keep_lock)
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/cc.py", line 1423, in cthunk_factory
    key=key, fn=self.compile_cmodule_by_step, keep_lock=keep_lock)
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/cmodule.py", line 1005, in module_from_key
    module = next(compile_steps)
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/cc.py", line 1338, in compile_cmodule_by_step
    preargs=preargs)
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/cmodule.py", line 2011, in compile_str
    return dlimport(lib_filename)
  File "~/.local/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg/theano/gof/cmodule.py", line 289, in dlimport
    rval = __import__(module_name, {}, {}, [module_name])
ImportError: ('~/.theano/compiledir_Linux-2.6.18-371.9.1.el5-x86_64-with-redhat-5.10-Tikanga-x86_64-2.7.3-64/tmpmlJ34P/eb163660e6e45b373cd7909e14efd44a.so: undefined symbol: _gfortran_st_write_done', '[Dot22(<TensorType(float64, col)>, <TensorType(float64, row)>)]')

请帮我正确安装Theano。我在这个小组中遇到了建议重新安装最新版本的 Theano 的解决方案。但是,我已经从 git 存储库安装了 Theano。我已经尝试过这个可能的解决方案: 但我仍然遇到同样的错误。

使用 Theano 标志:blas.ldflags=-lblas -lgfortran

如果您不知道如何使用 Theano 标志,请查看此页面:http://deeplearning.net/software/theano/library/config.html

你的问题在那个页面上讨论:http://deeplearning.net/software/theano/install_ubuntu.html