  from subprocess import run, PIPE, Popen
  
  # Revisions of tensorflow-gpu and cuda/cudnn requirements
  TENSORFLOW_REQUIREMENTS = {"1.2": ["8.0", "5.1"],
                             "1.4": ["8.0", "6.0"],
                             "1.12": ["9.0", "7.2"]}
  OS_VERSION = (platform.system(), platform.release())
  PY_VERSION = (platform.python_version(), platform.architecture()[0])
 
</s> remove     stdout = stdout.decode()
 </s> add     stdout = stdout.decode(ENCODING) </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()
ENCODING = locale.getpreferredencoding()
  from subprocess import run, PIPE, Popen
  
ENCODING = locale.getpreferredencoding()
  # Revisions of tensorflow-gpu and cuda/cudnn requirements
  TENSORFLOW_REQUIREMENTS = {"1.2": ["8.0", "5.1"],
                             "1.4": ["8.0", "6.0"],
                             "1.12": ["9.0", "7.2"]}
  OS_VERSION = (platform.system(), platform.release())
  PY_VERSION = (platform.python_version(), platform.architecture()[0])
keep add keep keep keep keep keep keep
 setup.py - Get system encoding 
setup.py