          self.output.info("Installed pip: {}".format(pip_version))
  
      def get_installed_packages(self):
          """ Get currently installed packages """
          installed_packages = dict()
          chk = Popen("\"{}\" -m pip freeze".format(sys.executable),
                      shell=True, stdout=PIPE)
          installed = chk.communicate()[0].decode(self.encoding).splitlines()
  
          for pkg in installed:
              if "==" not in pkg:
                  continue
              item = pkg.split("==")
 
</s> remove         self.output.info("Installed pip: {}".format(pip_version))
 </s> add         self.output.info(f"Installed pip: {pip_version}") </s> remove         retval = dict()
 </s> add         retval = {} </s> remove             run(pipexe)
 </s> add             run(pipexe, check=True) </s> remove         chk = Popen("nvcc -V", shell=True, stdout=PIPE, stderr=PIPE)
        stdout, stderr = chk.communicate()
 </s> add         with Popen("nvcc -V", shell=True, stdout=PIPE, stderr=PIPE) as chk:
            stdout, stderr = chk.communicate() </s> remove                 pkg = "{}{}".format(pkg, ",".join("".join(spec) for spec in version))
 </s> add                 pkg = f"{pkg}{','.join(''.join(spec) for spec in version)}"
        installed_packages = {}
        with Popen(f"\"{sys.executable}\" -m pip freeze", shell=True, stdout=PIPE) as chk:
            installed = chk.communicate()[0].decode(self.encoding).splitlines()
          self.output.info("Installed pip: {}".format(pip_version))
  
      def get_installed_packages(self):
          """ Get currently installed packages """
        installed_packages = {}
        with Popen(f"\"{sys.executable}\" -m pip freeze", shell=True, stdout=PIPE) as chk:
            installed = chk.communicate()[0].decode(self.encoding).splitlines()
        installed_packages = {}
        with Popen(f"\"{sys.executable}\" -m pip freeze", shell=True, stdout=PIPE) as chk:
            installed = chk.communicate()[0].decode(self.encoding).splitlines()
        installed_packages = {}
        with Popen(f"\"{sys.executable}\" -m pip freeze", shell=True, stdout=PIPE) as chk:
            installed = chk.communicate()[0].decode(self.encoding).splitlines()
        installed_packages = {}
        with Popen(f"\"{sys.executable}\" -m pip freeze", shell=True, stdout=PIPE) as chk:
            installed = chk.communicate()[0].decode(self.encoding).splitlines()
  
          for pkg in installed:
              if "==" not in pkg:
                  continue
              item = pkg.split("==")
keep keep keep keep replace replace replace 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