在Ubuntu for Python上安装SimpleElastix的问题

时间:2018-06-11 19:34:23

标签: python elastix simpleitk elastix-itk

我正在尝试在Ubuntu计算机上为Python2或3安装SimpleElastix / SimpleITK,无论我们可以开始工作。使用pip install并不起作用,因为当时不会导入各种方法(例如,没有" GetDefaultParameterMethod"存在)。我尝试按照他们网站上的说明(https://simpleelastix.readthedocs.io/GettingStarted.html#compiling-on-linux),但即使整个过程中没有错误,我仍然无法导入。 对于Python3,典型的" No模块"弹出错误,但对于Python2,我得到以下内容:

>>> import SimpleITK as sitk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/SimpleITK-1.0.1rc1.dev345+g9dfa8-py2.7-linux-x86_64.egg/SimpleITK/__init__.py", line 1, in <module>
    from .SimpleITK import *
  File "/usr/local/lib/python2.7/dist-packages/SimpleITK-1.0.1rc1.dev345+g9dfa8-py2.7-linux-x86_64.egg/SimpleITK/SimpleITK.py", line 17, in <module>
    _SimpleITK = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/SimpleITK-1.0.1rc1.dev345+g9dfa8-py2.7-linux-x86_64.egg/SimpleITK/SimpleITK.py", line 16, in swig_import_helper
    return importlib.import_module('_SimpleITK')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named _SimpleITK

非常感谢任何帮助:)

0 个答案:

没有答案