tensorflow-gpu版本出现libcublas.so.8.0:cannot open shared object file

文章主要参考以下博客https://www.aliyun.com/zixun/wenji/1289957.html

在利用GPU加速tensorflow时,出现了libcublas.so.8.0:cannot open shared object file的问题,为了解决这个问题,参考了很多博客,发现是没有添加环境变量,为了解决这个问题,首先

vi ~/.bashrc

到添加环境变量的界面

然后添加以上两条语句进行环境变量的配置

export PATH=$PATH:/usr/local/cuda-9.0/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64

然后保存退出

推出后输入

source ~/.bashrc

输入此条语句主要是为了激活刚刚配置的环境

然后再开始运行即可

原文地址:https://www.cnblogs.com/Cucucudeblog/p/10250413.html

时间: 2024-11-09 05:07:25

tensorflow-gpu版本出现libcublas.so.8.0:cannot open shared object file的相关文章

libsvn_client-1.so.0: cannot open shared object file: No such file or directory

源码安装好svn后,会有以下的报错: libsvn_client-1.so.0: cannot open shared object file: No such file or directory 解决办法; 执行ldconfig命令 #ldconfig svn程序启动时,加载某些动态库失败.共享库大多在/usr/lib./lib./usr/local/lib等,源码安装svn后,在共享库新添加了库文件,必须执行ldconfig命令更新/etc/lo.conf里对应的项.一般rpm包安装会自动执

error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file

安装rac10g,出现如下错误: [[email protected] oracle]# /u01/product/crs/root.sh WARNING: directory '/u01/product' is not owned by root Checking to see if Oracle CRS stack is already configured /etc/oracle does not exist. Creating it now. Setting the permission

动态链接库找不到 : error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory

问题: 运行gsl(GNU scientific Library)的函数库,用 gcc erf.c -I/usr/local/include -L/usr/local/lib64 -L/usr/local/lib -g -Wall --std=gnu99 -lgsl -lgslcblas -o m.o 编译,之后运行./m.o 提示error while loading shared libraries: libgsl.so.0: cannot open shared object file:

〖Android〗arm-linux-androideabi-gdb报 libpython2.6.so.1.0: cannot open shared object file错误的解决方法

执行: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gdb out/target/product/rk30sdk/symbols/system/bin/app_process 报错: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gdb: error while loa

Ubuntu14.04 ,libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory

[email protected]:/opt$ roslaunch blarospack : error while loading shared libraries: libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory Traceback (most recent call last): File "/home/macname/Desktop/ros/indigo/bi

python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory

安装python3遇到报错: wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz ./configure --prefix=/usr/local/Python-3.5.2 --enable-shared make make install ln -s /usr/local/Python-3.5.2/bin/python3 /usr/bin/python3 遇到报错: 解决: 查看动态库情况 ldd /usr/local/Py

svnadmin:error while loading shared libraries: libaprutil-1.so.0:cannot open shared object file: No such file or directory

wdcp下安装svn后一直提示 解决办法 vi /etc/ld.so.conf 在文件的最后加入“/www/wdlinux/apache/lib”即可,然后更新下: ldconfig -v

Linux运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such fil

链接时可以通过-L和-l来指定自己的库,因此链接可以通过,但是运行时,系统仍无法找到指定的库,需要简单配置一下. 解决方法1: 可以直接在将自己的库所在路径添加到/etc/ld.so.conf文件中.但一般这个文件中的内容都是一句"include /etc/ld.so.conf.d/*.conf",因此最好在/etc/ld.so.conf.d/目录下新建一个文件 , 如"xxx.conf",然后将自己的库所在路径添加到这个conf文件中. 修改完文件后,以root身

PyCharm ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory 解决办法