在Ubuntu 12.04中在python2.7中导入Tensorflow时出错 ‘GLIBC_2.17 not found’

前端之家收集整理的这篇文章主要介绍了在Ubuntu 12.04中在python2.7中导入Tensorflow时出错 ‘GLIBC_2.17 not found’前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经安装了Tensorflow绑定与python成功。但是当我尝试导入Tensorflow时,我得到了以下错误

ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17′ not
found (required by
/usr/local/lib/python2.7/dist-packages/tensorflow/python/_pywrap_tensorflow.so)

我试图更新GLIBC_2.15到2.17,但没有运气。

我有同样的问题,所以谷歌我做了这些步骤:
$ sudo pip install --upgrade virtualenv
$ virtualenv --system-site-packages ~/tensorflow
$ cd ~/tensorflow
$ source bin/activate
$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
$ cd /tmp
$ wget http://launchpadlibrarian.net/137699828/libc6_2.17-0ubuntu5_amd64.deb
$ wget http://launchpadlibrarian.net/137699829/libc6-dev_2.17-0ubuntu5_amd64.deb
$ mkdir libc6_2.17
$ cd libc6_2.17
$ ar p ../libc6_2.17-0ubuntu5_amd64.deb data.tar.gz | tar zx
$ ar p ../libc6-dev_2.17-0ubuntu5_amd64.deb data.tar.gz | tar zx
$ cd -
$ LD_LIBRARY_PATH=/tmp/libc6_2.17/lib/x86_64-linux-gnu/ /tmp/libc6_2.17/lib/x86_64-linux-gnu/ld-2.17.so bin/python local/lib/python2.7/site-packages/tensorflow/models/image/mnist/convolutional.py

退出

$ deactivate

这对我行得通。

原文链接:https://www.f2er.com/ubuntu/350414.html

猜你在找的Ubuntu相关文章