[ITK] [ITK-users] ImportError: No module named _SimpleITK

David Welch david.m.welch at gmail.com
Mon Jul 13 14:55:18 EDT 2015


Hi Brad,

I've built a virtualenv using virtualenvwrapper to use SimpleITK (built
using NAMICExternalProjects).  For reproducibility, we'd like to use only
dependencies within the ${NAMICExtBuild} directory, which makes most of the
online installation instructions invalid, AFAIK.

I've prepend the sys.path like so:

add2virtualenv ${NAMICExtBuild}/SimpleITK-build/bin
add2virtualenv ${NAMICExtBuild}/SimpleITK-build/lib
add2virtualenv ${NAMICExtBuild}/SimpleITK-build/Wrapping

This writes to the
$VIRTUAL_ENV/lib/site_packages/_virtualenv_path_extensions.pth file (used
by virtualenvwrapper to manage package/module paths).

I have also tried:

python ${NAMICExtBuild}/SimpleITK-build/Wrapping/PythonPackage/setupegg.py
install

within my virtualenv, but no such luck.  Any suggestions?

Cheers,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150713/fdae6dba/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list