ImportError: libcudart.so.10.0: cannot open shared object file

测试torch提示错误
 
ImportError: libcudart.so.10.0: cannot open shared object file
已邀请:

ncnynl

赞同来自:

cd /usr/local/cuda/lib64  确认是否存在
 
sudo ldconfig /usr/local/cuda/lib64 
 在~/.bashrc文件里增加如下行

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

要回复问题请先登录注册