---
title: 运行和验证
description: "1. 执行以下命令进入SimpleITK自带测试用例目录。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/openeuler_kunpeng_simpleitk_master_02_0011.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/openeuler_kunpeng_simpleitk_master_02_0011.html
indexId: a4f5345728708049c6eb4e051f864306d4ed5f72009193d7b7a6382d49d14dcb89
---
# 运行和验证

#### 操作步骤

1. 执行以下命令进入SimpleITK自带测试用例目录。

```
cd
/path/to/SimpleITK/
SimpleITK/build/SimpleITK-build
```


2. 执行以下命令测试用例。

```
ctest .
```


  ProcessObject_NumberOfThreads、SLICImageFilter.minimum、ImageRegistrationMethodDisplacement1相关测试用例可能会失败。 失败的原因是官方自带测试用例存在bug，软件本身没有问题，不影响正常使用。具体可以参考官方issue跟踪单：https://github.com/SimpleITK/SimpleITK/issues/1571

3. 以Python为例，执行以下命令绑定SimpleITK的Python接口。

```
cd
/path/to/SimpleITK/
SimpleITK/build/SimpleITK-build/Wrapping/Python
python setup.py install
```


  pip list 可以查看，SimpleITK已经安装到当前Python解释器。 其它语言绑定可以参考官方文档：https://simpleitk.readthedocs.io/en/v2.1.0/building.html#installation-from-build-tree
