Keras Installation

#Install numpy and scipy
sudo apt-get install gfortran libopenblas-dev liblapack-dev libatlas-base-dev python-pip g++ libopenblas-dev git python-nose python-pip python-dev python-tk
sudo apt-get remove python-numpy python-scipy
sudo pip install numpy
python -c "import numpy;numpy.test()"
sudo pip install scipy
python -c "import scipy;scipy.test()"

#Install sklearn
sudo pip install sklearn

#Install pandas
sudo pip install pandas

#Install pyyaml
sudo pip install pyyaml

#Install matplotlib
sudo pip install matplotlib

#Theano Install
sudo pip install Theano

#Tenserflow without GPU
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc0-cp27-none-linux_x86_64.whl
#GPU
BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc0-cp27-none-linux_x86_64.whl
sudo pip install --upgrade $TF_BINARY_URL #Theano Keras sudo pip install Keras

 

posted on 2016-10-20 17:11  chaseblack  阅读(301)  评论(0编辑  收藏  举报

导航