How to Install and Uninstall python3-torch Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: November 26,2024

1. Install "python3-torch" package

Please follow the steps below to install python3-torch on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install python3-torch

2. Uninstall "python3-torch" package

Please follow the guidelines below to uninstall python3-torch on Ubuntu 22.04 LTS (Jammy Jellyfish):

$ sudo apt remove python3-torch $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-torch package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: python3-torch
Architecture: amd64
Version: 1.8.1-4
Priority: optional
Section: universe/python
Source: pytorch
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Deep Learning Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 34653
Provides: python3.10-torch
Depends: libtorch1.8 (= 1.8.1-4), python3 (<< 3.11), python3 (>= 3.10~), python3-future, python3-numpy (>= 1:1.20.0), python3-numpy-abi9, python3-pkg-resources, python3-requests, python3-six, python3-typing-extensions, python3-yaml, python3.10:any, python3:any, libc6 (>= 2.34), libdnnl2 (>= 2.0), libgcc-s1 (>= 3.0), libgloo0 (>= 0.0~git20200918.3dc0328), libgoogle-glog0v5 (>= 0.5.0+really0.4.0), libonnx1 (>= 1.7.0+dfsg), libprotobuf23 (>= 3.12.4), libstdc++6 (>= 11), libunwind8, libtorch-test (= 1.8.1-4)
Recommends: libtorch-dev (= 1.8.1-4), build-essential, ninja-build, pybind11-dev
Suggests: python3-hypothesis, python3-pytest
Filename: pool/universe/p/pytorch/python3-torch_1.8.1-4_amd64.deb
Size: 7135212
MD5sum: 23e6e2c87e36aa458312e530cee13c58
SHA1: 492e838d893142a85b8bd193c3259e8458b8dd62
SHA256: 8a92eb787914af04cdb440f7a97995c4d13abfe636e2d8e4e77df03f5e20f448
SHA512: 65799202c1aa4a134b7f1330996bc1923b0b02037add327aec2d7757f569b58684d88d0a44cbfb9ee974261af921ef6b3f17b8834df13ba46d425808dba08fc8
Homepage: https://pytorch.org/
Description: Tensors and Dynamic neural networks in Python (Python Interface)
Description-md5: edbedaa5392d894ae3ca4d70d759b8bb