Skip to content

Instantly share code, notes, and snippets.

@eliasah
Last active October 8, 2018 11:52
Show Gist options
  • Save eliasah/04535949e844a189c1d5d2ab718fac0c to your computer and use it in GitHub Desktop.
Save eliasah/04535949e844a189c1d5d2ab718fac0c to your computer and use it in GitHub Desktop.
Install Keras 2.0.5 on Tensorflow 1.2.1 backend with Anaconda

create conda env

conda create --name keras
source activate keras

installing utilities

conda install python=3.5 numpy scikit-learn=0.18.1 jupyter matplotlib pip
conda install pandas h5py pillow lxml

verifying python version

python --version

installing tensorflow 1.2.1 for python 3.5 cpu only

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.1-cp35-cp35m-linux_x86_64.whl
python -c "import tensorflow as tf"

installing keras-2.0.5

pip install keras # --upgrade

verifying keras installation

python -c "import keras; print(keras.__version__)"
@MyVanitar
Copy link

Now, You can use conda install -c hesi_m keras to install the latest version of Keras (2.2.0) and Tensorflow(1.8.0) for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment