error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or

自己在docker 中apt-get upgrade了一下,出問題了,tensorflow不能用了驚恐

最後無論怎麼裝系統老是一: import tensorflow as tf 就出錯:

error while loading shared libraries:
libcuda.so.1: cannot open shared object file: No such file or directory


查了各種資料終於解決了:

這個文件在 usr/local/nvidia/lib64/

下面,把路徑加入到 ld.so.conf.d/cuda.conf中就行了

不過要用一下ldconfig命令,重新鏈接一下。

mark下,自己再碰到別忘了奮鬥

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章