  def check_cmake():
      """ Check CMake is installed for Windows """
      chk = Popen("cmake --version", shell=True, stdout=PIPE, stderr=PIPE)
      stdout, stderr = chk.communicate()
      stdout = stdout.decode()
      if stderr and OS_VERSION[0] == "Windows":
          stdout, stderr = check_cmake_windows()
      if stderr:
          out_error("CMake could not be found. See "
                    "https://github.com/deepfakes/faceswap/blob/master/INSTALL.md#cmake "
 
</s> remove              for line in stdout.decode().splitlines()
 </s> add              for line in stdout.decode(ENCODING).splitlines() </s> remove     installed = chk.communicate()[0].decode().splitlines()
 </s> add     installed = chk.communicate()[0].decode(ENCODING).splitlines() </s> remove              for line in stdout.decode().splitlines()
 </s> add              for line in stdout.decode(ENCODING).splitlines() </s> remove            for line in stdout.decode().splitlines()
 </s> add            for line in stdout.decode(ENCODING).splitlines() </s> remove            for line in stdout.decode().splitlines()
 </s> add            for line in stdout.decode(ENCODING).splitlines()
    stdout = stdout.decode(ENCODING)
  def check_cmake():
      """ Check CMake is installed for Windows """
      chk = Popen("cmake --version", shell=True, stdout=PIPE, stderr=PIPE)
      stdout, stderr = chk.communicate()
    stdout = stdout.decode(ENCODING)
      if stderr and OS_VERSION[0] == "Windows":
          stdout, stderr = check_cmake_windows()
      if stderr:
          out_error("CMake could not be found. See "
                    "https://github.com/deepfakes/faceswap/blob/master/INSTALL.md#cmake "
keep keep keep keep replace keep keep keep keep keep
 setup.py - Get system encoding 
setup.py