1.首先登录github,在guthub上搜索pytorch,然后pytorch下面的工程中可以看到如下内容
Python wheels for NVIDIA‘s Jetson Nano, Jetson TX2, and Jetson AGX Xavier are available via the following URLs:
They require JetPack 4.2 and above, and @dusty-nv maintains them
https://forums.developer.nvidia.com/t/pytorch-for-jetson-nano-version-1-5-0-now-available/72048
import torch
提示如下错误,
OSError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory
然后首先
sudo apt-get update
然后执行
apt-get install libopenmpi-dev
再次import torch发现错误消失,但是出现如下错误
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory
执行如下命令
sudo apt-get install libopenblas-dev
原文:https://www.cnblogs.com/cumtchw/p/13273753.html