nvidia nano import torch时报OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or

import torch
Traceback (most recent call last):
File “”, line 1, in
File “/home/*/.local/lib/python3.6/site-packages/torch/init.py”, line 188, in
_load_global_deps()
File “/home/*/.local/lib/python3.6/site-packages/torch/init.py”, line 141, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File “/usr/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory

有些库没有安装。

sudo apt-get install libopenblas-base libopenmpi-dev 

原链接

Unable to import pytorch - Jetson & Embedded Systems / Jetson Nano - NVIDIA Developer Forums

你可能感兴趣的:(nvidia,nano,边缘计算)