[Just a note] Until Keras + TensorFlow works on Mac OS X Sierra

Python installation

$ brew install pyenv

Added the following.

~/.bash_profile


export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"

Check the version of Python that can be installed.

$ pyenv install -l

Install 3.6.0.

$ xcode-select --install
$ pyenv install 3.6.0

Set the Python version to use to 3.6.0.

$ pyenv global 3.6.0

Version confirmation

$ python --version
Python 3.6.0

Install TensorFlow

Since it is troublesome this time, virtialenv is omitted.

$ pip install tensorflow

Install Keras

$ pip install keras

Operation check

git clone the keras repository

$ git clone https://github.com/fchollet/keras.git

Go to ʻexamples`

$ cd keras/examples

Try running mnist_cnn.py.

$ python mnist_cnn.py 

that's all.

Recommended Posts

[Just a note] Until Keras + TensorFlow works on Mac OS X Sierra
Build a Python development environment on Mac OS X
Memo on Mac OS X
Install Sphinx on Mac OS X
Install Scipy on Mac OS Sierra
Install mitmproxy on Mac OS X
Install pgmagick on Mac OS X 10.9
Installed aws-cli On Mac OS X Lion
Run NASA CEA on Mac OS X
Until a Python inexperienced engineer builds a TensorFlow execution environment + comfortable coding environment on Mac
Run Zookeeper x python (kazoo) on Mac OS X
Installing TensorFlow 0.11.0rc2 on OS X El Capitan (10.11.6)
Just a note
Shpinx (Python documentation builder) on Mac OS X
Preparing to use aws cli on Mac OS X
Building an environment for "Tello_Video" on Mac OS X
Build a machine learning Python environment on Mac OS
Very easy to install SciPy on Mac OS X
Try using E-Cell 4 on Windows 7 or Mac OS X
Install PyQt5 with homebrew on Mac OS X Marvericks (10.9.2)
Create a Python development environment on OS X Lion
Install Tensorflow on Mac
Using multiple versions of Python on Mac OS X (2) Usage
Using NAOqi 2.4.2 Python SDK on Mac OS X El Capitan
Introducing delocate, a wheel package utility for Mac OS X
How to install Theano on Mac OS X with homebrew
Run Tensorflow 2.x on Python 3.7
A note about TensorFlow Introduction
Get started with the Python framework Django on Mac OS X
Using multiple versions of Python on Mac OS X (1) Multiple Ver installation
Continuation ・ Notes on preparing the Python development environment on Mac OS X
Install lp_solve on Mac OS X and call it with python.
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)