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__