第一天训练好好的,第二天就报这个错,吐了。。。

文件libnvrtc.so.12明明是存在的,但就是报错找不到

解决办法:重载一下cuda动态链接库为系统所共享即可正常运行

# 将这里的cuda-10.2改成你的cudaxx-x文件夹即可
sudo ldconfig /usr/local/cuda-10.2/lib64

PS:如果你压根就没有 libnvrtc.so.12,那么可以试试以下解决方法:

【Python报错已解决】 ImportError: libcudart.so.10.2: cannot open shared object file: No such file or direct-CSDN博客

【原创解决方案】ImportError: libcupti.so.12: cannot open shared object file: No such file or directory-CSDN博客 

本文参考:

Ubuntu18.04——报错解决:libcudart.so.10.2: cannot open shared object file: No such file or directory_paddlepaddle_Irving.Gao-GitCode 开源社区 

 

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐