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/”, line 5, in
from import Explorer
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/data/”, line 3, in
from .base import BaseDataset
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/data/”, 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/”, line 1025, in
SETTINGS = SettingsManager() # initialize settings
File “/home/jetson/.local/lib/python3.8/site-packages/ultralytics/utils/”, 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/”, line 17, in
import torchvision
File “/home/jetson/.local/lib/python3.8/site-packages/torchvision/”, line 6, in
from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils
File “/home/jetson/.local/lib/python3.8/site-packages/torchvision/”, 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.


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.


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