Learn how to install PyTorch on Ubuntu 22.04 with step-by-step instructions for both CPU and GPU versions, including pip and conda installation methods.