Unable to import pytorch

I having trouble importing PyTorch in my jetson nano (jetpack 4.4 , cuda 10.2.89) , I have sucessfully installed it from .whl file and it is in my pip3 lib. But when I import it , it show this error . Please help

import torch
Traceback (most recent call last):
File “”, line 1, in
File “/home/parikshit/.local/lib/python3.6/site-packages/torch/init.py”, line 188, in
File “/home/parikshit/.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

Hi @parikshitsaikia1619, please install these packages:

$ sudo apt-get install libopenblas-base libopenmpi-dev 

You can view the installation instructions from this post:


Thanks for the quick response, now it works