How to Fix a Failed PyTorch Installation on Python 3.12

Hello, this is the Qualiteg Product Development team.

Overview

  • There have been reports that installing PyTorch, which ChatStream requires, does not work properly on Python 3.12.
  • Installation succeeded on Python 3.11 and earlier.

Error message

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Running the above produces an error like the following:

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
  • Please note that PyTorch installation may not support the latest version of Python.

Quick guide to installing PyTorch

https://pytorch.org/get-started/locally/

Workaround

Use Python 3.11


Read more

Ubuntu's Automatic Updates Bumped the Kernel Alone, and the GPU Vanished After a Reboot: Why the NVIDIA Module Gets Left Behind, and Three Ways to Prevent It

Ubuntu's Automatic Updates Bumped the Kernel Alone, and the GPU Vanished After a Reboot: Why the NVIDIA Module Gets Left Behind, and Three Ways to Prevent It

Reboot an Ubuntu 24.04 GPU server and nvidia-smi stops working. The cause: unattended-upgrades updated the kernel alone and skipped the NVIDIA module over a dependency it could not resolve. How we traced it in the logs, recovered with one install, and compared three fixes including apt-mark hold.

By Qualiteg Product Development Team