tensorflow 安装小记

1.下载tensorflow-1.1.0rc1-cp27-none-linux_x86_64.whl

2.pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-1.1.0rc1-cp27-none-linux_x86_64.whl (感谢亲爱的祖国,让我们自由地翻不了墙!)

3.python不能上下左右?

有可能:yum install ncurses ncurses-devel

然后:easy_install readline

如果报错可能要参考:

http://blog.163.com/seven_7_one/blog/static/16260641220116824652770/

没错,我就是这么倒霉啊,啥都让我遇到了。

python

import tensorflow:

ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)

更新glibc和libstdc++:

wget http://ftp.gnu.org/gnu/glibc/glibc-2.19.tar.gz
tar zxvf glibc-2.19.tar.gz
cd glibc-2.19
mkdir glibc-build-2.19
cd glibc-build-2.19
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make
make install

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libstdc++-4.8.5-11.el7.x86_64.rpm

rpm -ivh  libstdc++-4.8.5-11.el7.x86_64.rpm --nodeps --force

好吧,我还在继续报错。

原文地址:https://www.cnblogs.com/wasss/p/6700924.html