1)安裝numpy灌具、scipy并檢測
sudo apt-getinstall python-nose ?#scipy需要nose,所以先需安裝
sudo apt-getinstall python-numpy
sudo apt-getinstall python-scipy
檢測:
>>>import numpy
>>>numpy.test()
>>>import scipy
>>>scipy.test()
或者
# 檢查numpy是否通過測試
python -c"import numpy;numpy.test()"命令即可
2)安裝theano譬巫,可能需要先升級pip
pip install --upgrade pip
pip install Theano[test,doc]
檢查:
python -c"import theano;theano.test()"