Issue niftynet/__init__.py (console entries) checking TF installed and failing gracefully before proceeding with any NiftyNet command
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
+# Before doing anything else, check TF is installed
+# and fail gracefully if not.
+try:
+ import tensorflow
+except ImportError:
+ raise ImportError('NiftyNet is based on TensorFlow, which'
+ ' does not seem to be installed on your'
+ ' system.\nPlease install TensorFlow'
+ ' (https://www.tensorflow.org/) to be'
+ ' able to use NiftyNet.')
+
import os
import niftynet.utilities.misc_common as util
