【`pip install simpleitk `失败, No matching distribution found for simpleitk】

项目场景:

pip install simpleitk 失败:

pip install simpleitk 时,出现 ERROR: No matching distribution found for simpleitk;
出错提示


原因分析:

报错 原因是找不到合适版本,下面的方法我都试了都不行:

1、添加/更换镜像源,添加信任源:

pip install simpleitk -i https://pypi.tuna.tsinghua.edu.cn/simple/simpleitk --trusted-host pypi.tuna.tsinghua.edu.cn

2、升级setuptools wheel:

pip install --upgrade pip setuptools wheel

3、指定下载源:

conda install -c simpleitk simpleitk

解决方案:

最后下载了whl到本地,问题解决:

下载物理包到本地,然后“pip install 包whl的物理路径”进行本地安装:

pip install SimpleITK-1.2.0-cp37-cp37m-manylinux1_x86_64.whl

在这里插入图片描述