Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中出现 Unable to find vcvarsall.bat

Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中
运行Go to ./data/coco/PythonAPI Run python setup.py build_ext --inplace
出现错误:Unable to find vcvarsall.bat
Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中出现 Unable to find vcvarsall.bat_第1张图片
然后装

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

出现错误:
Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中出现 Unable to find vcvarsall.bat_第2张图片
Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中出现 Unable to find vcvarsall.bat_第3张图片

  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
  
  ValueError: 'pycocotools/_mask.pyx' doesn't match any files

解决办法是:

1. 安装 Microsoft visual c++ 14.0

https://964279924.ctfile.com/fs/1445568-239446865
或
https://pan.baidu.com/s/1q2Nj41Xk85CHHv7_zOhQIA 密码:qbba

3. 如果出现了.Net framework版本过低,小于4.5的最低版本要求:

[如果没出现这个问题,跳过这一步]
重新安装 .Net framework 更高的版本:

https://support.microsoft.com/en-us/help/3151800/the-net-framework-4-6-2-offline-installer-for-windows

再安装Microsoft visual c++ 14.0,
然后运行

  1. Go to ./data/coco/PythonAPI Run python setup.py build_ext --inplace
    Run python setup.py build_ext install
    Go to ./lib/utils and run python setup.py build_ext --inplace

  2. Follow this instruction to download PyCoco database. The final structure has to look like

    “data/VOCDevkit2007/annotations_cache”

    “data/VOCDevkit2007/VOC2007”

  3. Download pre-trained VGG16 from here and place it as “data\imagenet_weights\vgg16.ckpt” For rest of the models, please check here

  4. Run train.py
    Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中出现 Unable to find vcvarsall.bat_第4张图片
    Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中出现 Unable to find vcvarsall.bat_第5张图片
    Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中出现 Unable to find vcvarsall.bat_第6张图片
    Windows 10系统复现Faster-RCNN-TensorFlow-Python3.5-master过程中出现 Unable to find vcvarsall.bat_第7张图片

你可能感兴趣的:(Windows,深度学习)