1. 完整报错
Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
2. 解决方法
在你的虚拟环境中,如/data_1/anaconda3/envs/GPTSoVits/lib/python3.10/site-packages/nvidia/cudnn/lib
,在此路径下查看是否有libcudnn_ops_infer.so.8文件。
如果存在的话,直接添加下环境变量即可。
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data_1/anaconda3/envs/GPTSoVits/lib/python3.10/site-packages/nvidia/cudnn/lib