OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory

时间:2024-03-12 21:47:31

NVIDIA Jetson xavier NX安装完pytorch之后,import torch时候提示

OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory

登入  https://pkgs.org/网站,在右上角的搜索框中输入libmpi_cxx.so.20,然后下载libopenmpi2_2.1.1-8_arm64.deb。

dpkg -i libopenmpi2_2.1.1-8_arm64.deb

提示下列错误:

OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory

于是要继续下载相应的包进行安装,然后后面还会提示缺少相应的包,缺什么就下载安装就好了。

关于安装包的安装方式:例如你在该网站搜了用一个安装包,然后点击arm64的那个

OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory

然后能看到下载地址

OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory

其实你可以先用apt-get的方式安装试一下,不行的话再下载安装包进行安装