Skip to content

Instantly share code, notes, and snippets.

@dantejauregui
Last active January 1, 2019 18:16
Show Gist options
  • Save dantejauregui/559968381ec85fc9040409473465b8da to your computer and use it in GitHub Desktop.
Save dantejauregui/559968381ec85fc9040409473465b8da to your computer and use it in GitHub Desktop.
Keras with Tensorflow Backend
Followed this: https://www.pyimagesearch.com/2016/11/14/installing-keras-with-tensorflow-backend/
(lo hice para Python2.7)
1.Create a virtualEnv and open it
2. Once is inside, in the console, write this command: export TF_BINARY_URL= (look in Tensorflow WEB the URL: https://www.tensorflow.org/install/pip y buscar sección "Package Location" y "macOS (CPU-only)" )
I used for my MAC: "export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py2-none-any.whl
3. pip install --upgrade $TF_BINARY_URL
4. Sprueba si esta bien instalado TF:
python
>>> import tensorflow
5. Se instala dependencias de Keras:
$ pip install numpy scipy
$ pip install scikit-learn matplotlib
$ pip install pillow
$ pip install h5py (este sirve para Save Models)
6. pip install keras
7. 4. Se prueba si esta bien instalado KERAS:
python
>>> import keras
8. se entra al packageJSON para confirma que el Backend de Keras es Tensorflow, y no otro:
vim ~/.keras/keras.json
9. Instala herramientas IDE:
pip install ipython
pip install jupyter
10. Cuando actives el virtualEnv, no olvidar de entrar a la carpeta especifica ("cd ...") q acabas de crear para utilizar el environment ML q haz instalado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment