              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"
          elif self.enable_cuda:
              backend = "nvidia"
 
</s> remove             self.required_packages.append(custom_tf)
 </s> add             self.required_packages.append((custom_tf, (custom_tf, ""))) </s> remove     def get_required_packages(self):
 </s> add     def get_required_packages(self) -> None:
    def set_config(self) -> None:
              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) -> None:
          """ Set the backend in the faceswap config file """
          if self.enable_amd:
              backend = "amd"
          elif self.enable_cuda:
              backend = "nvidia"
keep keep keep keep replace keep keep keep keep keep
 Add Apple M1 to setup.py

add libblas to requirements 
setup.py