Bootstrap

Windows下安装chamferdist库

在pip或者本地安装该库时报错 #error:  -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.

进入host_config.h文件(该文件的具体位置会在报错信息中给出),修改下述内容

把  #if _MSC_VER < 1910 || _MSC_VER >= 1930改为 #if _MSC_VER < 1910 || _MSC_VER >= 2030
;