Win10下编译OnnxRuntime+TensorRT时,提示"UnicodeEncodeError: ‘gbk’ codec can’t encode character ‘\xc2’ in position 11: illegal multibyte sequence",如图:
如图提示是 generate_nuspec_for_native_nuget.py 文件有问题
File “…\tools\nuget\generate_nuspec_for_native_nuget.py”, line 1185, in main
原来代码如下:
修改为
with open(os.path.join(args.native_build_path, "NativeNuget.nuspec"), "w", encoding='utf-8') as f: