Building TensorFlow from source on Ubuntu 16.04 w/ GPU: `GLIBCXX_3.4.20' not found

◇◆丶佛笑我妖孽 提交于 2019-12-05 20:19:08
Feynman27

This command seemed to fix my problem:

conda install libgcc

from here.

EDIT : Feynman27's solution seems cleaner, try it first.

Had the same issue. These steps have solved it for me (root, add sudo when needed):

  1. Get the newest libstdc++ 6 available (MAY NOT BE REQUIRED):

    add-apt-repository ppa:ubuntu-toolchain-r/test apt-get update apt-get upgrade

  2. Update the symlinks in ananconda, I did it in my python2 env in anaconda, maybe you need to do it in ~/anaconda/lib directly:

    cd ~/anaconda2/envs/python2/lib mv libstdc++.so libstdc++.so.backup mv libstdc++.so.6 libstdc++.so.6.backup ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!