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下,自己再碰到别忘了。

你可能感兴趣的:(python,docker,jupyter,python,ubuntu)