Installation

Get the code

  • Ensure you have the version control system git installed on your machine.
  • Ensure that you have python installed on your machine, at least version 2.7.
  • Clone the repository:
    • git clone git://github.com/Radiomics/pyradiomics

Installation on your system

  • For unix like systems (MacOSX, linux):

    • cd pyradiomics

    • sudo python -m pip install -r requirements.txt

    • sudo python setup.py install

    • If you don’t have sudo/admin rights on your machine, you need to locally install numpy, nose, tqdm, PyWavelets, SimpleITK (specified in requirements.txt). In a bash shell:

      pip install --user --upgrade pip
      export PATH=$HOME/.local/bin:$PATH
      pip install --user -r requirements.txt
      export PYTHONPATH=$HOME/.local/lib64/python2.7/site-packages
      
      • If the installation of SimpleITK fails (newer versions not available on the default servers), you can get it manually from sourceforge

        • For linux:

          wget 'https://sourceforge.net/projects/simpleitk/files/SimpleITK/0.10.0/Python/SimpleITK-0.10.0-1-cp27-cp27m-manylinux1_x86_64.whl'
          pip install --user 'SimpleITK-0.10.0-1-cp27-cp27m-manylinux1_x86_64.whl'
          
        • For Mac:

          wget 'https://sourceforge.net/projects/simpleitk/files/SimpleITK/0.10.0/Python/SimpleITK-0.10.0-cp27-cp27m-macosx_10_6_intel.whl'
          pip install --user 'SimpleITK-0.10.0-cp27-cp27m-macosx_10_6_intel.whl'
          
  • For Windows:

    • cd pyradiomics

    • python -m pip install -r requirements.txt

    • python setup.py install

    • If the installation of SimpleITK fails (newer versions not available on the default servers), you can install it manually:

      pip install --trusted-host www.simpleitk.org -f https://sourceforge.net/projects/simpleitk/files/SimpleITK/0.10.0/Python/ SimpleITK==0.10.0