# Pytorch extension causes crash (Slicer 5.12.2 on Ubuntu 22.04)

**URL:** <https://discourse.slicer.org/t/pytorch-extension-causes-crash-slicer-5-12-2-on-ubuntu-22-04/47710>\
**Category:** Support\
**Created:** [July 22, 2026, 9:45am UTC](https://discourse.slicer.org/t/pytorch-extension-causes-crash-slicer-5-12-2-on-ubuntu-22-04/47710 "2026-07-22T09:45:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 22, 2026, 2:10pm UTC](https://discourse.slicer.org/t/pytorch-extension-causes-crash-slicer-5-12-2-on-ubuntu-22-04/47710/2 "2026-07-22T14:10:43Z")

</div>

It would be good to have this in the extension repo issues: [https://github.com/fepegar/SlicerPyTorch](https://github.com/fepegar/SlicerPyTorch)

We have troubles from time to time with PyTorch, but I don’t think anyone has a magic formula to keep up with all the changes.

Can you try the pytorch local install instructions with Slicer’s python? (`PythonSlicer -m pip`)

> **[Get Started](https://pytorch.org/get-started/locally/)**
>
> Set up PyTorch easily with local installation or supported cloud platforms.

---

_[View the full topic](https://discourse.slicer.org/t/pytorch-extension-causes-crash-slicer-5-12-2-on-ubuntu-22-04/47710)._
