FARSIGHT Tutorials/Just Installing Software

From FarsightWiki
Jump to: navigation, search

Contents

Details

  • Goal: This tutorial shows you how to install ITK + Python wrapping without having to build it.
  • Duration: 30 minutes
  • Requisites: Basic familiarity with Python commands
  • Materials: Python installed

Download

Download the ITK+PythonWrapping INSTALLER from:


ITK With Python Wrapping Installer

You will get a file called

InsightToolkitWithPythonWrapping-3.13.0-win32.exe
  • Save it in a temporary directory.
  • You will be able to dispose of this file once you finish this installation tutorial

Install

  • Run the executable
    • InsightToolkitWithPythonWrapping-3.13.0-win32.exe
  • Read the license
    • Seriously, it is not that long, and it is Open Source.
  • Accept the License
  • Select the directory where you want to install the software.
    • It requires 350Mb of free disk space
    • We will call this directory the INSTALLATION directory.
      • Write it down since you will need it for subsequent steps

Configure

Windows

You will define several environment variables. Depending on your version of windows this is done in slightly different ways.

In Windows XP you can do

  • In the Start menu, select "My Computer"
  • In the new window that opens, right click and select "Properties"
  • In the new window that opens, select the "Advanced" tab
  • In the Advanced tab, click on the "Environment Variables"
  • Select the PATH variable and add to it the INSTALLATION/bin directory (where you installed ITK). You will use a ";" to separate this directory from others that may already exist in the list.
    • For example
      • I installed ITK in the directory D:\ProgramFiles\InsightToolkit-3.13
      • Then I added to the PATH variable the directory D:\ProgramFiles\InsightToolkit-3.13\bin
      • (note the /bin at the end)
  • If WrapITK is installed, then select the PYTHONPATH variable (or create it if it doesn't exist) and add to it the directory
    • INSTALLATION\lib\InsightToolkit\WrapITK\Python
      • For example, in my installation, the PYTHONPATH variable contains:
        • D:\ProgramFiles\InsightToolkit-3.13\lib\InsightToolkit\WrapITK\Python
  • If WrapITK is not installed, then in order to use the WrapITK in the build tree, add two paths in the PYTHONPATH variable. If ITK is built in the directory D:\ProgramFiles\InsightToolkit-3.13\bin, then the path variable to be added would be
    • D:\ProgramFiles\InsightToolkit-3.13\bin\bin
    • D:\ProgramFiles\InsightToolkit-3.13\bin\Wrapping\WrapITK\Python

Start Enjoying

Personal tools