在m上安装Python3的SimpleElastix

2024-05-29 11:51:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用macossierra10.12.6,试图安装SimpleITK的simplelastix扩展。我一直在按照指示here。在我开始工作之后,结果发现当我使用python2.7时,这个扩展似乎只包含在SimpleITK中,而在我使用python3.6时却不包括在我尝试使用python3.6时

import SimpleITK as sitk
resultImage = sitk.Elastix(sitk.ReadImage("fixedImage.nii"), sitk.ReadImage("movingImage.nii"))

我知道错误了

^{pr2}$

我找到了这个suggestion,但没能在我的Mac上运行。在

谢谢你的建议

汤姆德


Tags: importhereas错误niisimpleitkpr2suggestion
1条回答
网友
1楼 · 发布于 2024-05-29 11:51:15

您可以按此链接安装:https://simpleelastix.readthedocs.io/GettingStarted.html#compiling-on-linux

注意上一次python安装,我使用Ubuntu16.04,而且我的python在我用户的anaconda下,您应该使用没有sudo的python安装,但是它不能工作。所以在运行python之前,您需要将build folder的权限更改为777设置.py安装

相关问题 更多 >

    热门问题