Skip to content
Posted on:August 13, 2014 at 06:13 AM

Tensorflow 001

Tensorflow 001

Tensorflow 001

Tensorflow에 최근 관심이 생겨서 관련한 글을 모아본다.

Mac에서 설치하기

뭔가 라이브러리들이 얽혀있어서 깨끗히 시작해야 할 때

pip uninstall protobuf
pip uninstall tensorflow
brew uninstall protobuf

$TF_BINARY_URL를 설정한다. 필요한 TF_BINARY_URL은 구글 tensorflow download 페이지를 참고한다. https://www.tensorflow.org/versions/r0.11/get_started/os_setup.html

내 컴퓨터에는 Cuda가 안깔려 있으므로,

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc2-py2-none-any.whl
pip install $TF_BINARY_URL

import google.protobuf
>>> print google.protobuf.__version__
3.0.0a4
>>> import tensorflow
>>> print tensorflow.__version__
michael@rei:~/stl/_proj/pycharm$ python
Python 2.7.11 (default, Jan 22 2016, 08:29:18)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import google.protobuf
>>> print google.protobuf.__version__
3.0.0
>>> import tensorflow
print tensorflow.__version__
>>> print tensorflow.__version__
0.11.0rc2