          ------
          FaceswapError
              If Tensorflow is not found, or is not between versions 2.4 and 2.9
          """
          directml_ver = rocm_ver = (2, 10)
          min_ver = (2, 7)
          max_ver = (2, 10)
          try:
              import tensorflow as tf  # noqa pylint:disable=import-outside-toplevel,unused-import
          except ImportError as err:
              if "DLL load failed while importing" in str(err):
 
</s> remove     (2, 9)
 </s> add     (2, 10) </s> remove     assert (2, 2) <= tf_version < (2, 11)
 </s> add     assert (2, 10) <= tf_version < (2, 11) </s> remove     tf_min: T.Tuple[int, int] = (2, 0)
    scaling: T.Tuple[int, int] = (0, 1)
 </s> add     tf_min: tuple[int, int] = (2, 0)
    scaling: tuple[int, int] = (0, 1) </s> remove             if self._env.is_conda:
                if pkg.startswith("tensorflow-gpu"):
                    # From TF 2.4 onwards, Anaconda Tensorflow becomes a mess. The version of 2.5
                    # installed by Anaconda is compiled against an incorrect numpy version which
                    # breaks Tensorflow. Coupled with this the versions of cudatoolkit and cudnn
                    # available in the default Anaconda channel are not compatible with the
                    # official PyPi versions of Tensorflow. With this in mind we will pull in the
                    # required Cuda/cuDNN from conda-forge, and install Tensorflow with pip
                    # TODO Revert to Conda if they get their act together

                    # Rewrite tensorflow requirement to versions from highest available cuda/cudnn
                    highest_cuda = sorted(_TENSORFLOW_REQUIREMENTS.values())[-1]
                    compat_tf = next(k for k, v in _TENSORFLOW_REQUIREMENTS.items()
                                     if v == highest_cuda)
                    pkg = f"tensorflow-gpu{compat_tf}"
                    conda_only = True

 </s> add             if self._env.is_conda and not pip_only: </s> remove                     line = proc.stdout.readline().decode(self._env.encoding, errors="replace")
 </s> add                     lines = proc.stdout.readline()
        min_ver = (2, 10)
          ------
          FaceswapError
              If Tensorflow is not found, or is not between versions 2.4 and 2.9
          """
        min_ver = (2, 10)
        min_ver = (2, 10)
          max_ver = (2, 10)
          try:
              import tensorflow as tf  # noqa pylint:disable=import-outside-toplevel,unused-import
          except ImportError as err:
              if "DLL load failed while importing" in str(err):
keep keep keep keep replace replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
lib/cli/launcher.py