1. Ubuntu 에 Tensorflow CPU Ver 설치
[ 참고 ] https://www.tensorflow.org/install/install_linux
1) > sudo apt-get install python3-pip python3-dev python-virtualenv
2) > virtualenv --system-site-packages -p python3 ./tensorflow
3) > source ~/tensorflow/bin/activate
4) (tensorflow) > easy_install -U pip
5) pip3 install --upgrade tensorflow
6) import tensorflow 해보면 그래도 오류가 남.
1.8 은 괴물인듯. 설치되는 환경을 찾을 수가 없음.
Illegal instruction (core dumped) after running import tensorflow
7) anaconda 로 설치.
8) 다운그레이드
pip uninstall tensorflow
pip install tensorflow==1.5.0
9) python
>>> import tensorflow
10) jupyter nobook 별도 설치 - 설치 안해도 실행은 되나, import tensorflow 가 안되서 다시 설치해야 함.
conda install jupyter notebook
jupyter notebook
[ import tensorflow as tf ]
[ hello = tf.constant('Hello, TensorFlow!') ]
[ sess = tf.Session() ]
[ print(sess.run(hello)) ]
Hello, TensorFlow !