              self.output.error(f"{custom_tf} not found")
          elif os.path.splitext(custom_tf)[1] != ".whl":
              self.output.error(f"{custom_tf} is not a valid pip wheel")
          elif custom_tf:
              self.required_packages.append(custom_tf)
  
      def set_config(self):
          """ Set the backend in the faceswap config file """
          if self.enable_amd:
              backend = "amd"
 
</s> remove     def set_config(self):
 </s> add     def set_config(self) -> None: </s> remove     def get_required_packages(self):
 </s> add     def get_required_packages(self) -> None: </s> remove     def is_virtualenv(self):
 </s> add     def is_virtualenv(self) -> bool:
            self.required_packages.append((custom_tf, (custom_tf, "")))
              self.output.error(f"{custom_tf} not found")
          elif os.path.splitext(custom_tf)[1] != ".whl":
              self.output.error(f"{custom_tf} is not a valid pip wheel")
          elif custom_tf:
            self.required_packages.append((custom_tf, (custom_tf, "")))
  
      def set_config(self):
          """ Set the backend in the faceswap config file """
          if self.enable_amd:
              backend = "amd"
keep keep keep keep replace keep keep keep keep keep
 Add Apple M1 to setup.py

add libblas to requirements 
setup.py