首先尝试:
conda install simpleitk
和
pip install simpleitk
如果幸运的话安装上了,后面就不用看了。
先给出最后的安装命令:
conda install -c simpleitk simpleitk
最终这个命令可用,想知道怎么查询该命令的可继续往下看。
conda命令在channel里找不到可安装的包,出现如下提示:
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- simpleitk
pip安装的时候弹出很多个warning后出现error,找不到对应的版本,显示如下:
ERROR: Could not find a version that satisfies the requirement simpleitk (from versions: none)
ERROR: No matching distribution found for simpleitk
之后在anaconda官网(https://anaconda.org/)上找到了安装命令。
步骤如下:
- 先注册一个账号:
- 搜索栏搜索simpleitk:
- 选择一个点进去:
- 在命令端输入给出的安装命令:
最终成功!!!!!
安装其它安装包也可以试试这种方案,应该是通用的!