Video tutorial: https://youtu.be/B8v285BJ8Yk
py -3.10 -m venv myvenv
myvenv\Scripts\activate
Ultralytics recommend to install pytorch first from official website as per your cuda version- https://pytorch.org/get-started/locally.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip install Ultralytics