Search code examples
pythonpytorch

ERROR: No matching distribution found for torch


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?


Solution

  • 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
    vy310\Scripts\activative
    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