解决ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu111 (from versions..

时间:2025-03-30 08:06:21

不管三七二十一,先更新pip

python -m pip install --upgrade pip

之后,

我们用一个镜像网站:Simple Index

pip install XXX 追加 -i /simple/ --trusted-host 即可

或者

直接从官网下载

pip install torch==1.9.0+cu111 -f /whl/torch_stable.html

亲测有效~