需要用Python的theano写deeplearning的东西,pip install numpy,scipy,brew install openblas,总之一堆dependency完了以后,
尝试:
pip3 uninstall Theano
pip3 install --upgrade --no-deps git+git://github.com/Theano/Theano.git
安装没有太大问题,但是做theano.test(),花了将近四个小时,问题实在太长了,这是最后的一部分错误信息
烦问有没有人有头绪知道这是怎么了[s:12]
======================================================================
ERROR: theano.sandbox.cuda.tests.test_type.test_unpickle_cudandarray_as_numpy_ndarray_flag1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/local/Cellar/python3/3.4.0_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Theano-0.6.0-py3.4.egg/theano/sandbox/cuda/tests/test_type.py", line 58, in test_unpickle_cudandarray_as_numpy_ndarray_flag1
mat = pickle.load(fp)
TypeError: 'str' does not support the buffer interface
======================================================================
ERROR: test0 (theano.tensor.tests.test_opt.test_assert)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.0_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Theano-0.6.0-py3.4.egg/theano/tensor/tests/test_opt.py", line 2793, in test0
f = theano.function([x, y], theano.tensor.opt.assertTrue(x, T.eq(x, y)))
AttributeError: 'module' object has no attribute 'assertTrue'
======================================================================
ERROR: test1 (theano.tensor.tests.test_opt.test_assert)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.0_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Theano-0.6.0-py3.4.egg/theano/tensor/tests/test_opt.py", line 2805, in test1
f = theano.function([x], theano.tensor.opt.assertTrue(x, 1), mode=mode)
AttributeError: 'module' object has no attribute 'assertTrue'
======================================================================
ERROR: test2 (theano.tensor.tests.test_opt.test_assert)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.0_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Theano-0.6.0-py3.4.egg/theano/tensor/tests/test_opt.py", line 2821, in test2
f = theano.function([x, y], theano.tensor.opt.assertTrue(x, y, 1),
AttributeError: 'module' object has no attribute 'assertTrue'
======================================================================
ERROR: test3 (theano.tensor.tests.test_opt.test_assert)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.0_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Theano-0.6.0-py3.4.egg/theano/tensor/tests/test_opt.py", line 2839, in test3
f = theano.function([x, y], theano.tensor.opt.assertTrue(x, y, 0),
AttributeError: 'module' object has no attribute 'assertTrue'
======================================================================
ERROR: test_infer_shape (theano.tensor.tests.test_opt.test_assert)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.0_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Theano-0.6.0-py3.4.egg/theano/tensor/tests/test_opt.py", line 2853, in test_infer_shape
out = theano.tensor.opt.assertTrue(adscal, bdscal)
AttributeError: 'module' object has no attribute 'assertTrue'
----------------------------------------------------------------------
Ran 2490 tests in 8732.653s
FAILED (KNOWNFAIL=18, SKIP=62, errors=6)[s:12][s:12]