macOS, TensorFlow 설치

macOS 2018. 1. 22. 18:59

sudo easy_install pip

$ sudo easy_install --upgrade six

$ pip install tensorflow

$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.1-py3-none-any.whl

$ sudo pip3 install --upgrade $TF_BINARY_URL

$ python

>>>import tensorflow as tf

>>>hello = tf.constant('Hello, TensorFlow')

>>>sess = tf.Session()

>>>print(sess.run(hello))

>>>a = tf.constant(10)

>>>b = tf.constant(32)

>>>print(sess.run(a+b))


https://ohienbee.blogspot.kr

'macOS' 카테고리의 다른 글

macOS tree 명령어 설치  (0) 2018.02.18
macOS,패러럴즈 삭제  (0) 2018.01.23
macOS, 날짜 연산 쉘스크립트  (0) 2018.01.22
macOS, mysql, 맥에서 mysql 삭제  (0) 2018.01.21
macOS, 특정 프로세스 죽이기  (0) 2018.01.20
Posted by 앤비
,