              raise FaceswapError("The minimum supported Tensorflow is version {} but you have "
                                  "version {} installed. Please upgrade Tensorflow.".format(
                                      min_ver, tf_ver))
          if tf_ver > max_ver:
              raise FaceswapError("The maximumum supported Tensorflow is version {} but you have "
                                  "version {} installed. Please downgrade Tensorflow.".format(
                                      max_ver, tf_ver))
          logger.debug("Installed Tensorflow Version: %s", tf_ver)
  
      def _test_for_gui(self):
          """ If running the gui, performs check to ensure necessary prerequisites are present. """
          if self._command != "gui":
 
</s> remove             raise FaceswapError("The minimum supported Tensorflow is version {} but you have "
                                "version {} installed. Please upgrade Tensorflow.".format(
                                    min_ver, tf_ver))
 </s> add             msg = ("The minimum supported Tensorflow is version {} but you have version {} "
                   "installed. Please upgrade Tensorflow.".format(min_ver, tf_ver))
            self._handle_import_error(msg) </s> remove             raise FaceswapError("There was an error importing Tensorflow. This is most likely "
                                "because you do not have TensorFlow installed, or you are trying "
                                "to run tensorflow-gpu on a system without an Nvidia graphics "
                                "card. Original import error: {}".format(str(err)))
 </s> add             if "DLL load failed while importing" in str(err):
                msg = (
                    "A DLL library file failed to load. Make sure that you have Microsoft Visual "
                    "C++ Redistributable (2015, 2017, 2019) installed for your machine from: "
                    "https://support.microsoft.com/en-gb/help/2977003")
            else:
                msg = (
                    "There was an error importing Tensorflow. This is most likely because you do "
                    "not have TensorFlow installed, or you are trying to run tensorflow-gpu on a "
                    "system without an Nvidia graphics card. Original import "
                    "error: {}".format(str(err)))
            self._handle_import_error(msg)
 </s> remove     @staticmethod
    def _test_for_tf_version():
 </s> add     def _test_for_tf_version(self):
            msg = ("The maximumum supported Tensorflow is version {} but you have version {} "
                   "installed. Please downgrade Tensorflow.".format(max_ver, tf_ver))
            self._handle_import_error(msg)
              raise FaceswapError("The minimum supported Tensorflow is version {} but you have "
                                  "version {} installed. Please upgrade Tensorflow.".format(
                                      min_ver, tf_ver))
          if tf_ver > max_ver:
            msg = ("The maximumum supported Tensorflow is version {} but you have version {} "
                   "installed. Please downgrade Tensorflow.".format(max_ver, tf_ver))
            self._handle_import_error(msg)
            msg = ("The maximumum supported Tensorflow is version {} but you have version {} "
                   "installed. Please downgrade Tensorflow.".format(max_ver, tf_ver))
            self._handle_import_error(msg)
            msg = ("The maximumum supported Tensorflow is version {} but you have version {} "
                   "installed. Please downgrade Tensorflow.".format(max_ver, tf_ver))
            self._handle_import_error(msg)
          logger.debug("Installed Tensorflow Version: %s", tf_ver)
  
      def _test_for_gui(self):
          """ If running the gui, performs check to ensure necessary prerequisites are present. """
          if self._command != "gui":
keep keep keep keep replace replace replace keep keep keep keep keep
 Hold error messages open when launching GUI in Windows 
lib/cli/launcher.py