How to Install and Uninstall python3-torch Package on Debian 12 (Bookworm)

Last updated: November 22,2024

1. Install "python3-torch" package

Please follow the guidelines below to install python3-torch on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install python3-torch

2. Uninstall "python3-torch" package

Please follow the steps below to uninstall python3-torch on Debian 12 (Bookworm):

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

3. Information about the python3-torch package on Debian 12 (Bookworm)

Package: python3-torch
Source: pytorch
Version: 1.13.1+dfsg-4
Installed-Size: 46609
Maintainer: Debian Deep Learning Team
Architecture: amd64
Depends: libtorch1.13 (= 1.13.1+dfsg-4), python3 (<< 3.12), python3 (>= 3.11~), python3-astunparse, python3-future, python3-hypothesis, python3-numpy (>= 1:1.22.0), python3-numpy-abi9, python3-pkg-resources, python3-psutil, python3-requests, python3-six, python3-sympy, python3-typing-extensions, python3-yaml, python3.11:any, python3:any, libc6 (>= 2.34), libgcc-s1 (>= 3.0), libgoogle-glog0v6 (>= 0.6.0), libonnx1 (>= 1.12.0), libprotobuf32 (>= 3.21.12), libstdc++6 (>= 12), libtorch-test (= 1.13.1+dfsg-4)
Recommends: libtorch-dev (= 1.13.1+dfsg-4), build-essential, ninja-build, pybind11-dev
Suggests: python3-pytest
Description: Tensors and Dynamic neural networks in Python (Python Interface)
Description-md5: edbedaa5392d894ae3ca4d70d759b8bb
Homepage: https://pytorch.org/
Section: python
Priority: optional
Filename: pool/main/p/pytorch/python3-torch_1.13.1+dfsg-4_amd64.deb
Size: 9043516
MD5sum: 216ca7e020054bf6a0b201219a758d6c
SHA256: 8559392ee9f808c45ca9473ab47ec5fe030072b5055261ba1a7d5270f927ee95