Command yolo error when i install ultralytics

(testenv) jetson@orin:~/torchvision_0.16.1$ yolo
Traceback (most recent call last):
File “/home/jetson/.local/bin/yolo”, line 5, in
from ultralytics.cfg import entrypoint
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/init.py”, line 5, in
from ultralytics.data.explorer.explorer import Explorer
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/data/init.py”, line 3, in
from .base import BaseDataset
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/data/base.py”, line 17, in
from ultralytics.utils import DEFAULT_CFG, LOCAL_RANK, LOGGER, NUM_THREADS, TQDM
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/utils/init.py”, line 1025, in
SETTINGS = SettingsManager() # initialize settings
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/utils/init.py”, line 923, in init
from ultralytics.utils.torch_utils import torch_distributed_zero_first
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/utils/torch_utils.py”, line 17, in
import torchvision
File “/home/jetson/.local/lib/python3.8/site-packages/torchvision/init.py”, line 6, in
from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils
File “/home/jetson/.local/lib/python3.8/site-packages/torchvision/_meta_registrations.py”, line 4, in
import torch._custom_ops
ModuleNotFoundError: No module named ‘torch._custom_ops’

I have successfully installed torch + torchvision respectively.
I got an error when running yolo command.

Hi,

Could you share how you installed PyTorch and TorchVision?
We recommend installing PyTorch with this doc and following the steps in this topic to install TorchVision.

Thanks.

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