1.
go to the link: http://deeplearning.net/software/theano/install.html#install
2.
I get this error: dfftpack missing fortran complier. I download the gfortran pkg for mac. install gfortran
3. run sudo pip install Theano
now it is running for gfortran...
but still has a lot of errors.
4. then I get a lot of erros saying missing dependencies of scipy
5. run the command sudo port install py27-numpy +atlas py27-scipy +atlas py27-pip
but I get these two errors:
Error: Failed to install llvm-3.3
6.
run sudo port install llvm-2.9
==================================
alright, so I failed on installing it on mac, spending the whole afternoon on ubuntu 12.04.
1. install libblas, liblapack from the software center.
2. install scipy using command python setup.py install --user this install the scipy to my local user .
3. install numpy similarly.
4. install python nose from software center.
5. then I can test numpy using python -c "import numpy; numpy.test()" to get the following output:
NumPy version 1.7.0
NumPy is installed in /fs/narahomes/wenhoujx/.local/lib/python2.7/site-packages/numpy
Python version 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3]
nose version 1.1.2
6. test scipy using python -c "import scipy; scipy.test()" the output:
Running unit tests for scipy
NumPy version 1.7.0
NumPy is installed in /fs/narahomes/wenhoujx/.local/lib/python2.7/site-packages/numpy
SciPy version 0.12.0
SciPy is installed in /fs/narahomes/wenhoujx/.local/lib/python2.7/site-packages/scipy
Python version 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3]
nose version 1.1.2
/fs/narahomes/wenhoujx/.local/lib/python2.7/site-packages/numpy/lib/utils.py:139: DeprecationWarning: `scipy.lib.blas` is deprecated, use `scipy.linalg.blas` instead!
warnings.warn(depdoc, DeprecationWarning)
/fs/narahomes/wenhoujx/.local/lib/python2.7/site-packages/numpy/lib/utils.py:139: DeprecationWarning: `scipy.lib.lapack` is deprecated, use `scipy.linalg.lapack` instead!
warnings.warn(depdoc, DeprecationWarning)
7. now install theano, download from https://pypi.python.org/pypi/Theano#downloads
then tar, python setup.py install --user
8. test theano
wenhoujx@narawks16:/scratch0/pylib$ python -c "import theano; theano.test()"
Theano version 0.6.0rc3
theano is installed in /fs/narahomes/wenhoujx/.local/lib/python2.7/site-packages/Theano-0.6.0rc3-py2.7.egg/theano
NumPy version 1.7.0
NumPy is installed in /fs/narahomes/wenhoujx/.local/lib/python2.7/site-packages/numpy
Python version 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3]
nose version 1.1.2
----------------------------------------------------------------------
Ran 0 tests in 0.002s
OK
there is a problem that the test doesn't run . zero test.
9. pip uninstall theano to clear theano
then pip install --user theano to install it in $HOME.
then run python -c "import theano; theano.test()"
now everything is running, but with warnings.
it will probably take ~30min, it is 9:24pm now.
finish on 10:31 pm
Ran 2015 tests in 3131.603s
10. done.
9. pip uninstall theano to clear theano
then pip install --user theano to install it in $HOME.
then run python -c "import theano; theano.test()"
now everything is running, but with warnings.
it will probably take ~30min, it is 9:24pm now.
finish on 10:31 pm
Ran 2015 tests in 3131.603s
10. done.
No comments:
Post a Comment