How to Install TensorFlow on CentOS

January 13, 2020 Liquid Web

In this video, we demonstrate to you how to do install TensorFlow on CentOS.

Commands used: 
yum update -y
python3 -m venv pip-tensorflow
source pip-tensorflow/bin/activate
pip install -U pip setuptools
pip install tensorflow
python

Snippet
===========================
import tensorflow as tf
vals1 = tf.constant([1, 1, 2, 2])
vals2 = tf.constant([2, 2, 4, 4])
result = tf.multiply(vals1, vals2)
tf.print(result)
===========================

python
echo "export TF_CPP_MIN_LOG_LEVEL=2" ⟩⟩ .bash_profile
source .bash_profile
python
conda create -n conda-tensorflow tensorflow -y
conda activate conda-tensorflow
python

The related article for this article can be found here: 
https://www.liquidweb.com/kb/how-to-install-tensorflow-on-centos/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or for more information on our other products, visit: https://www.liquidweb.com/products/ to learn more about our current specials!


Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our newsletter to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Create a Cron Task in Ubuntu
How to Create a Cron Task in Ubuntu

In this video, we describe how to create a cron task in Ubuntu. Cron jobs are an incredibly useful Linux to...

Next Video
How to Setup a Python Virtual Environment on CentOS
How to Setup a Python Virtual Environment on CentOS

In this tutorial, we cover how to set up a Python virtual environment on CentOS, making it possible to inst...

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now