Step 1. An easy way to install most of the dependencies is to install Anaconda.
- Download page https://www.continuum.io/downloads
--install
bash Anaconda2-4.2.0-Linux-x86_64.sh
--allow set up path at the end of installation
Step 2. Check PATH variable echo $PATH.
- If not set, then set the path in .bashrc file.
--export PATH="/home/niraj/anaconda2/bin:$PATH"
- Restart terminal and check again.
Step 3. Installing theano using pip command
- If pip not installed, install it.
-- https://pip.pypa.io/en/stable/installing/
- pip install Theano
Step 4. install additional dependency
-conda install pydot-ng
Step 5. install nose-parameterized
-pip install --user nose-parameterized
Step 6. running test
-python -c "import theano; theano.test()"
--ok(about 30min)
Step 7. installing keras using pip
-pip install keras
Step 8. edit .json file
~/.keras/keras.json.
{
"image_dim_ordering": "th",
"epsilon": 1e-07,
"floatx": "float32",
"backend": "theano"
}
Step 9. check keras installation
-python -c "import keras; print keras.__version__"