I am trying to install PyTorch 2.7.0 with CUDA 12.6 support in a Docker container, but I get the following error:
ERROR: Could not find a version that satisfies the requirement torch==2.7.0+cu126 (from versions: none)
ERROR: No matching distribution found for torch==2.7.0+cu126
However, when I run the same command on the host machine (outside Docker), it works fine:
pip install --no-cache-dir torch==2.7.0+cu126 --index-url https://download.pytorch.org/whl/cu126
Details: Docker and host machine has the same python version