解决 Windows 编译 Fast R-CNN 的 bbox 和 nms 出现的错误 error: Unable to find vcvarsall.bat

Posted willwell

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 Windows 编译 Fast R-CNN 的 bbox 和 nms 出现的错误 error: Unable to find vcvarsall.bat相关的知识,希望对你有一定的参考价值。

在 Windows 下安装一个底层的 Python 包时(Fast R-CNN 的 bbox 和 nms),遇到 error: Unable to find vcvarsall.bat 错误,看到这个错误信息的第一感觉就是跟编译器相关的。网上说安装一个 Python Tools for Visual Studio 就可以了。

打开 VS 2017 的安装程序,选择修改,把 Python 支持勾选上,进行安装。

再进行安装,以为可以了,新的问题又出现了:error: command ‘C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64link.exe‘ failed with exit status 1158

解决方法是:将 C:Program Files (x86)Windows Kits10inx64 加到环境变量,并且复制 rc.exercdll.dllC:Program Files (x86)Windows Kits8.1inx86C:Program Files (x86)Microsoft Visual Studio 14.0VCin

搞定了,在windows下搞深度学习真的是找罪受啊,无奈办公离不开啊。

以上是关于解决 Windows 编译 Fast R-CNN 的 bbox 和 nms 出现的错误 error: Unable to find vcvarsall.bat的主要内容,如果未能解决你的问题,请参考以下文章

R-CNN, Fast R-CNN, Faster R-CNN, YOLO:目标检测算法总结

转R-CNN学习笔记4:Fast R-CNN

R-CNN/Fast R-CNN/Faster R-CNN

深度学习和目标检测系列教程 6-300:目标检测Fast-RCNN架构

一小时吃透 R-CNN & Fast R-CNN & Faster R-CNN

R-CNN , Fast R-CNN , Faster R-CNN原理及区别