解决libcudart.so.8.0或libcusolver.so.8.0: cannot open shared object file: No such file or directory

时间:2022-02-19 22:03:48



临时做法,以Ubuntu为例,输入这条命令:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64/


如果要一次配置好,还是在环境变量(PATH)那里配好吧