TensorFlow installation command under CentOS

Install the extension source: sudo yum -y install epel-release

Install the python-pip module: sudo yum install python-pip

Download and install the whl file directly. The tensorflow address of the cpu version is: https://pypi.org/project/tensorflow/1.7.0/#files. After opening, you can
see tensorflow-1.7.0-cp27-cp27mu-manylinux1_x86_64 .whl download link

pip install tensorflow-1.7.0-cp27-cp27mu-manylinux1_x86_64.whl

 

Test if the installation was successful:

Execute python:

>>>import tensorflow as tf

>>>tf.__version__

>>>tf.__path__

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324661072&siteId=291194637