ImportError: libnvidia-fatbinaryloader.so.375.39: cannot open shared object file: No such file or directory

后端 未结 6 974
陌清茗
陌清茗 2021-01-01 03:09

I\'m using Ubuntu 16.04, Cuda 8.0 and cudann-v5.1. I uninstalled Tensorflow-CPU version and reinstalled tensorflow-GPU enabled. Followed the instructions given here: https:/

6条回答
  •  Happy的楠姐
    2021-01-01 04:16

    I encountered this issue as well, there were two issues that needed to be resolved.

    1. I added /usr/lib/nvidia-375 to my LD_LIBRARY_PATH environment variable. You can verify that the file libnvidia-fatbinaryloader.so.375.39 lives in that directory. If not, find where it does live and add that path. It's not clear to me why this wasn't picked up properly in compiling the sources.

    2. Next I encountered the error:

      libstdc++.so.6: version `CXXABI_1.3.8' not found
      

    If you encounter that it's because you have a newer version of gcc than is available in anaconda or your python installation. For me that meant adding this path to LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/libstdc++.so.6

    I also had to rename the old libstdc++.so.6 at the path shown in the error message. I couldn't find a way to convince python not to look in the default path without just renaming the file. There may be a cleaner way to do this, but that worked for me.

    There were a lot of hidden gotchas in the installation.

提交回复
热议问题