서버/MAC
Mac에 TensorFlow 설치
유키공
2018. 1. 9. 10:30
Mac에 TensorFlow 설치
Python 3.6.x로 설치합니다.$ python --version Python 3.6.3
$ pip3 install tensorflow
>>> import tensorflow as tf >>> hello = tf.constant('Hello, tongchun') >>> sess = tf.Session() >>> print(sess.run(hello)) b'Hello, tongchun'
>>> import tensorflow as tf >>> print(tf.__version__) 1.3.0
>>> import tensorflow as tf /usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds)
$ sudo pip3 install --upgrade tf_nightly-1.head-py3-none-any.whl 설치 완료 후 python을 실행하고 import하면 정상적으로 불러오는 것을 확인할 수 있습니다.