  
      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()
  
          for pkg in installed:
              if "==" not in pkg:
                  continue
 
</s> remove         self.required_packages.extend(git_requirements)
 </s> add  </s> remove             if self.env.is_conda:
                # Get Conda alias for Key
 </s> add             if self.env.is_conda:  # Get Conda alias for Key </s> remove         if not (self.py_version[0].split(".")[0] == "3"
                and self.py_version[0].split(".")[1] in ("7", "8")
                and self.py_version[1] == "64bit") and not self.updater:
            self.output.error("Please run this script with Python version 3.7 or 3.8 "
 </s> add         if self.updater:
            return

        if not ((3, 7) <= sys.version_info < (3, 10) and self.py_version[1] == "64bit"):
            self.output.error("Please run this script with Python version 3.7 to 3.9 " </s> remove                     # parse_requirements can't handle git dependencies, so extract and then
                    # manually add to final list
                    if package and package.startswith("git+"):
                        git_requirements.append((package, []))
                        continue
 </s> add 
        with Popen(f"\"{sys.executable}\" -m pip freeze --local", shell=True, stdout=PIPE) as chk:
  
      def get_installed_packages(self):
          """ Get currently installed packages """
          installed_packages = {}
        with Popen(f"\"{sys.executable}\" -m pip freeze --local", shell=True, stdout=PIPE) as chk:
              installed = chk.communicate()[0].decode(self.encoding).splitlines()
  
          for pkg in installed:
              if "==" not in pkg:
                  continue
keep keep keep keep replace keep keep keep keep keep
 setup.py - python 3.9 support
    - move requirements files to dedicated folder
    - update all references to requirements files locations
    - setup.py: remove git requirements references
    - setup.py: allow running in python 3.9
    - windows/linux installers: default to python 3.9 environment
    - faceswap.py: cleaner python version check 
setup.py