              pipexe.extend(["install", "--no-cache-dir", "-qq", "--upgrade"])
              if not self.is_admin and not self.is_virtualenv:
                  pipexe.append("--user")
              pipexe.append("pip")
              run(pipexe)
          import pip  # pylint:disable=import-outside-toplevel
          pip_version = pip.__version__
          self.output.info("Installed pip: {}".format(pip_version))
  
      def get_installed_packages(self):
 
</s> remove         self.output.info("Installed pip: {}".format(pip_version))
 </s> add         self.output.info(f"Installed pip: {pip_version}") </s> remove         installed_packages = dict()
        chk = Popen("\"{}\" -m pip freeze".format(sys.executable),
                    shell=True, stdout=PIPE)
        installed = chk.communicate()[0].decode(self.encoding).splitlines()
 </s> add         installed_packages = {}
        with Popen(f"\"{sys.executable}\" -m pip freeze", shell=True, stdout=PIPE) as chk:
            installed = chk.communicate()[0].decode(self.encoding).splitlines() </s> remove         max_ver = 2.6
 </s> add         max_ver = 2.8 </s> remove             self.output.error("{} is not a valid pip wheel".format(custom_tf))
 </s> add             self.output.error(f"{custom_tf} is not a valid pip wheel") </s> remove         self.output.info("Encoding: {}".format(self.encoding))
 </s> add         self.output.info(f"Encoding: {self.encoding}")
            run(pipexe, check=True)
              pipexe.extend(["install", "--no-cache-dir", "-qq", "--upgrade"])
              if not self.is_admin and not self.is_virtualenv:
                  pipexe.append("--user")
              pipexe.append("pip")
            run(pipexe, check=True)
          import pip  # pylint:disable=import-outside-toplevel
          pip_version = pip.__version__
          self.output.info("Installed pip: {}".format(pip_version))
  
      def get_installed_packages(self):
keep keep keep keep replace keep keep keep keep keep
 Update code to support Tensorflow versions up to 2.8 (#1213)

* Update maximum tf version in setup + requirements

* - bump max version of tf version in launcher
- standardise tf version check

* update keras get_custom_objects  for tf>2.6

* bugfix: force black text in GUI file dialogs (linux)

* dssim loss - Move to stock tf.ssim function

* Update optimizer imports for compatibility

* fix logging for tf2.8

* Fix GUI graphing for TF2.8

* update tests

* bump requirements.txt versions

* Remove limit on nvidia-ml-py

* Graphing bugfixes
  - Prevent live graph from displaying if data not yet available

* bugfix: Live graph. Collect loss labels correctly

* fix: live graph - swallow inconsistent loss errors

* Bugfix: Prevent live graph from clearing during training

* Fix graphing for AMD 
setup.py