admin管理员组

文章数量:1402854

I am trying to run the requirements.txt file for keras using !pip3 install -r requirements.txt and I run into this error

ERROR: Could not find a version that satisfies the requirement torch==2.6.0+cpu (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0)
ERROR: No matching distribution found for torch==2.6.0+cpu

if I remove the +cpu from torch=2.6.0+cpu in the requirements.txt file it seems to work ?

# Tensorflow.
tensorflow-cpu~=2.18.0;sys_platform != 'darwin'
tensorflow~=2.18.0;sys_platform == 'darwin'
tf_keras
tf2onnx

# Torch.
--extra-index-url 
torch==2.6.0+cpu
torch-xla==2.6.0;sys_platform != 'darwin'

# Jax.
# Pinned to 0.5.0 on CPU. JAX 0.5.1 requires Tensorflow 2.19 for saved_model_test.
# Note that we test against the latest JAX on GPU.
jax[cpu]==0.5.0
flax

# pre-commit checks (formatting, linting, etc.)
pre-commit

# Common deps.
-r requirements-common.txt

Can someone help me understand this ? I cloned this repository from my fork

Im using python 3.11

本文标签: visual studio codeERROR No matching distribution found for torch260cpuStack Overflow