ModuleNotFoundError: No module named 'torch'

I used Nvidia’s documentation in order to install torch, following this link:

When I tried to verify the installation, using the commands in this link:
$ export LD_LIBRARY_PATH=/usr/lib/llvm-8/lib:$LD_LIBRARY_PATH
$ python3
import torch

I got the following error message: ModuleNotFoundError: No module named ‘torch’.

my Jetpack version is 5.0.2, and I tried to use both framework 22.11 and 22.10 using this link: https://developer.download.nvidia.com/compute/redist/jp/v502/pytorch/

Hi,

Our prebuilt is generated with python 3.8.
But based on the screenshot, you are using python 3.10.

Please use python 3.8 instead.
Or you can build PyTorch on your own for python 3.10.

The detailed building steps can be found in the below topic:

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.