conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決

独上兰舟1發表於2024-05-30

(retalking) [root@localhost video-retalking]# find / -name "libmkl_intel_lp64.so.1"
/root/anaconda3/pkgs/mkl-2021.2.0-h06a4308_296/lib/libmkl_intel_lp64.so.1
/root/anaconda3/pkgs/mkl-2021.4.0-h06a4308_640/lib/libmkl_intel_lp64.so.1
/pkgs/mkl-2021.4.0-h06a4308_640/lib/libmkl_intel_lp64.so.1

辦法:

conda install mkl=2021

vim ~/.bashrc

或者 vim /etc/profile

export LD_LIBRARY_PATH=/home/……:$LD_LIBRARY_PATH

source profile

source ~/.bashrc

相關文章