Tensorflow: ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory

前端 未结 1 916
南方客
南方客 2021-02-12 14:12

I have recently installed tensorflow-gpu using pip. But when I am importing it it is giving the following error:

ImportError: libcudnn.so.7: cannot open shared o         


        
相关标签:
1条回答
  • 2021-02-12 14:46

    You are setting LD_LIBRARY_PATH in the wrong way, I would recommend to do it this way (which is kind of the standard):

    export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
    
    0 讨论(0)
提交回复
热议问题