ERROR: No matching distribution found for torch

Question:

Python 3.11.1 , With stable version of PyTorch

pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117

enter image description here

Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com, https://download.pytorch.org/whl/cu117
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

enter image description here

enter image description here

Python 3.11.1 , even with nightly version of PyTorch

!pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu117

enter image description here

How to fix?

Answers:

But anyway, PyTorch must/should support comtemporary version of Python: 3.11.1 .

py -3.10 -V
python 3.10.9
py -3.10 -m venv vy310
vy310Scriptsactivative
py -V
py –list

pip install jupyterlab

pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu117

jupyter lab
Answered By: Raphaël Colantonio

temporary

pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

Work with Python 3.11 only. See https://github.com/pytorch/pytorch/issues/86566#issuecomment-1419472838

Answered By: Raphaël Colantonio
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.