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