Install Tensorflow in Centos 7
0. 사전 yum 설치
yum groupinstall -y "Development tools"
yum install -y epel-release
yum install -y python-pip
1. dock 세팅
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce
2. tensorflow 설치
install --upgrade pip
sudo pip install --upgrade setuptools
sudo pip install --upgrade virtualenv
pip install --upgrade tensorflow
[ 만약 pip install이 되지 않는다면 여기로 이동 -> https://growingsaja.tistory.com/34 ]
3. 정상 설치 확인
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
'About Data > Tensorflow with Python' 카테고리의 다른 글
[Python][Tensorflow][Jupyter] 실습 3 : 간단한 함수들 (26) | 2019.07.10 |
---|---|
[Python][Tensorflow][Jupyter] 실습 2 : placeholder (24) | 2019.07.09 |
[Python][Tensorflow][Jupyter] 실습 1 : constant, variable, init (0) | 2019.07.09 |
[Tensorflow][Python3.6] 간단한 실습으로 기계 학습을 통해 스스로 답찾게하기 (31) | 2019.07.09 |
[Tensorflow][Python3.6] How to install from Python to Tensorflow (25) | 2019.07.08 |