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

 

 

 

 

 

 

 

 

 

+ Recent posts