集群上的Theano安装问题

时间:2015-01-05 23:18:13

标签: python python-2.7 theano

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

  
      
  1. Python版本是:Python 2.7.3
  2.   
  3. 群集上安装的Numpy版本为:NumPy版本1.6.2
  4.   
  5. GCC version: GCC 4.6.1
  6.   
  7. 鼻子版本1.3.4
  8.   

我按照以下方式安装了Theano

  
      
  1. git clone git://github.com/Theano/Theano.git
  2.   
  3. cd Theano; python2.7 setup.py install --user
  4.   
  5. 已安装的Theano版本为:0.6.0
  6.   

然后我尝试在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。我已经尝试过这个可能的解决方案:https://stackoverflow.com/a/18238732/4416268但我仍然得到同样的错误。

1 个答案:

答案 0 :(得分:0)

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

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

您的问题在该页面上讨论:http://deeplearning.net/software/theano/install_ubuntu.html