          if tf_ver:
              # Remove the version of tensorflow in requirements file and add the correct version
              # that corresponds to the installed Cuda/cuDNN versions
              self.required_packages = [pkg for pkg in self.required_packages
                                        if not pkg.startswith("tensorflow-gpu")]
              tf_ver = f"tensorflow-gpu{tf_ver}"
              self.required_packages.append(tf_ver)
              return
  
          self.output.warning(
 
</s> remove             self.required_packages.append(tf_ver)
 </s> add             tf_ver = f"tensorflow-gpu{tf_ver}"
            self.required_packages.append(("tensorflow-gpu",
                                           next(parse_requirements(tf_ver)).specs)) </s> remove             if self.env.is_conda and not pkg.startswith("git"):
 </s> add             if self.env.is_conda and not self.env.enable_apple_silicon: </s> remove         if not self.is_conda or not self.enable_cuda:
            return

        if self.os_version[0] == "Windows":
 </s> add         if not self.is_conda or not self.enable_cuda or self.os_version[0].lower() != "linux": </s> remove     def upgrade_pip(self):
 </s> add     def upgrade_pip(self) -> None:
                                      if not pkg[0].startswith("tensorflow-gpu")]
          if tf_ver:
              # Remove the version of tensorflow in requirements file and add the correct version
              # that corresponds to the installed Cuda/cuDNN versions
              self.required_packages = [pkg for pkg in self.required_packages
                                      if not pkg[0].startswith("tensorflow-gpu")]
              tf_ver = f"tensorflow-gpu{tf_ver}"
              self.required_packages.append(tf_ver)
              return
  
          self.output.warning(
keep keep keep keep replace keep keep keep keep keep
 Add Apple M1 to setup.py

add libblas to requirements 
setup.py