环境:Centos系统下
python:2.7
tensorflow
********************
1.安装python :输入python命令 看看centos有没有自带python(如果为自带可baidu)
2.先安装pip:wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate(下载)
python get-pip.py (安装)
pip --version(查看版本)
如果版本低,升级pip(sudo pip install -U pip)
3,yum install python-devel libffi-devel openssl-devel
yum install -y openssl-devel
yum install gcc
yum install glibc-headers
yum install gcc-c++
4.pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
【总在(Downloading numpy-1.11.2-cp27-cp27mu-manylinux1_x86_64.whl)出错!可用下面的自下载安装】
(sudo pip install --upgrade --ignore-installed six tensorflow-0.9.0-cp27-none-linux_x86_64.whl)
5. 出现Successfully installed numpy-1.11.2 protobuf-3.0.0b2 setuptools-0.9.8 six-1.9.0 tensorflow-0.9.0 wheel-0.29.0
即是安装成功