将cpp_extension.py文件中的
原始的是 compiler_info.decode()
try: if sys.platform.startswith('linux'): minimum_required_version = MINIMUM_GCC_VERSION version = subprocess.check_output([compiler, '-dumpfullversion', '-dumpversion']) version = version.decode().strip().split('.') else: minimum_required_version = MINIMUM_MSVC_VERSION compiler_info = subprocess.check_output(compiler, stderr=subprocess.STDOUT) match = re.search(r'(d+).(d+).(d+)', compiler_info.decode(' gbk').strip()) version = (0, 0, 0) if match is None else match.groups()