1. Installing the appropriate TensorFlow package:

    • pip install "tensorflow==1.15.*"
  2. Installing NiftyNet package

    Option 1. released version from PyPI:

    pip install niftynet

    Option 2. latest dev version from source code repository:

    git clone
    # installing dependencies from the list of requirements
    cd NiftyNet/
    pip install -r requirements.txt

    Alternatively, you can download the code as a .zip file and extract it.

  3. (Optional) Accessing MetaImage format (.mha/.mhd files) requires SimpleITK:

    pip install SimpleITK