              package = "\"{}\"".format(package)
          condaexe.append(package)
  
          if cuda_cudnn is not None:
              condaexe.extend(["cudatoolkit={}".format(cuda_cudnn[0]),
                               "cudnn={}".format(cuda_cudnn[1])])
          self.output.info("Installing {}".format(package.replace("\"", "")))
          shell = self.env.os_version[0] == "Windows"
          try:
              if verbose:
                  run(condaexe, check=True, shell=shell)
 
</s> remove             package = "\"{}\"".format(package)
 </s> add             package = f"\"{package}\"" </s> remove                 self.output.info("{} not available in Conda. Installing with pip".format(package))
 </s> add                 self.output.info(f"{package} not available in Conda. Installing with pip") </s> remove         self.env.cuda_version = cuda_keys[0].lower().replace("cuda_path_v", "").replace("_", ".")
        self.env.cuda_path = os.environ[cuda_keys[0]]
        self.output.info("CUDA version: " + self.env.cuda_version)

    def cudnn_check(self):
        """ Check Linux or Windows cuDNN Version from cudnn.h """
        if self.env.os_version[0] == "Linux":
            cudnn_checkfiles = self.cudnn_checkfiles_linux()
        elif self.env.os_version[0] == "Windows":
            if not self.env.cuda_path and not self.cuda_keys_windows:
                self.output.error(
                    "CUDA not found. See "
                    "https://github.com/deepfakes/faceswap/blob/master/INSTALL.md#cuda "
                    "for instructions")
                return
            if not self.env.cuda_path:
                self.env.cuda_path = os.environ[self.cuda_keys_windows[0]]
            cudnn_checkfiles = self.cudnn_checkfiles_windows()

        cudnn_checkfile = None
        for checkfile in cudnn_checkfiles:
            if os.path.isfile(checkfile):
                cudnn_checkfile = checkfile
                break
 </s> add     def _cudnn_check(self):
        """ Check Linux or Windows cuDNN Version from cudnn.h and add to :attr:`cudnn_version`. """
        cudnn_checkfiles = getattr(self, f"_get_checkfiles_{self._os}")()
        cudnn_checkfile = next((hdr for hdr in cudnn_checkfiles if os.path.isfile(hdr)), None) </s> remove             version = re.search(r".*release (?P<cuda>\d+\.\d+)", stdout.decode(self.env.encoding))
            self.env.cuda_version = version.groupdict().get("cuda", None)
            if self.env.cuda_version:
                self.output.info("CUDA version: " + self.env.cuda_version)
                return
        # Failed to load nvcc
        if self.env.os_version[0] == "Linux":
            self.cuda_check_linux()
        elif self.env.os_version[0] == "Windows":
            self.cuda_check_windows()

    def cuda_check_linux(self):
        """ Check Linux CUDA Version """
 </s> add             version = re.search(r".*release (?P<cuda>\d+\.\d+)",
                                stdout.decode(locale.getpreferredencoding()))
            self.cuda_version = version.groupdict().get("cuda", None)
            locate = "where" if self._os == "windows" else "which"
            path = os.popen(f"{locate} nvcc").read()
            if path:
                path = path.split("\n")[0]  # Split multiple entries and take first found
                while True:  # Get Cuda root folder
                    path, split = os.path.split(path)
                    if split == "bin":
                        break
                self.cuda_path = path
            return

        # Failed to load nvcc, manual check
        getattr(self, f"_cuda_check_{self._os}")()

    def _cuda_check_linux(self):
        """ For Linux check the dynamic link loader for libcudart. If not found with ldconfig then
        attempt to find it in LD_LIBRARY_PATH. """ </s> remove     @property
    def cuda_keys_windows(self):
        """ Return the OS Environ CUDA Keys for Windows """
        return [key for key in os.environ if key.lower().startswith("cuda_path_v")]

 </s> add 
            condaexe.extend([f"cudatoolkit={cuda_cudnn[0]}",
                             f"cudnn={cuda_cudnn[1]}"])
              package = "\"{}\"".format(package)
          condaexe.append(package)
  
          if cuda_cudnn is not None:
            condaexe.extend([f"cudatoolkit={cuda_cudnn[0]}",
                             f"cudnn={cuda_cudnn[1]}"])
            condaexe.extend([f"cudatoolkit={cuda_cudnn[0]}",
                             f"cudnn={cuda_cudnn[1]}"])
          self.output.info("Installing {}".format(package.replace("\"", "")))
          shell = self.env.os_version[0] == "Windows"
          try:
              if verbose:
                  run(condaexe, check=True, shell=shell)
keep keep keep keep replace replace keep keep keep keep keep
 sysinfo/setup - Standardize cuda/cudnn checks 
setup.py