모두를 위한 딥러닝 강의 by Sung Kim ( https://hunkim.github.io/ml/ )
- Python 3.5.1
- pip
- pyenv
- virtualenv
- autoenv
$ brew update
$ brew upgrade
$ pyenv install 3.5.1
$ pyenv virtualenv 3.5.1 learntf
$ touch .env
$ vi .env
# /.env
echo "====================="
echo "TensorFlow Playground"
echo " Activate virtualenv "
echo "====================="
pyenv activate learntf
$ cd ./.
# Mac OS X, CPU only, Python 3.4 or 3.5:
(learntf)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.1-py3-none-any.whl
$ pip instsall --upgrade pip
(learntf)$ pip install --upgrade $TF_BINARY_URL
$ python
...
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> print(sess.run(a + b))
42
>>>
$ pyenvv deactivate
# install
$ pip install jupyter
# Launch
$ jupyter notebook