$ 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
Since it is troublesome this time, virtialenv is omitted.
$ pip install tensorflow
$ pip install keras
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