Home > other >  Win10 pytorch version under fasterrcnn compiler error
Win10 pytorch version under fasterrcnn compiler error

Time:09-16

The source code is https://github.com/jwyang/faster-rcnn.pytorch/tree/pytorch-1.0

The environment is pytorch1.0 cuda9.0 vs2015

When running python setup. Py install error: error: the command 'C: \ \ Program Files \ \ Microsoft Visual Studio (x86) 14.0 \ \ VC \ \ BIN \ \ x86_amd64 \ \ cl exe' failed with the exit status 2

The specific error that is long, messy
Running build_ext
C: \ Users \ Qjc \ Anaconda3 \ envs \ pytorch1.0 \ lib \ site - packages \ torch \ utils \ cpp_extension py: 184: UserWarning: Error checking the compiler version for cl: [2] WinError system cannot find the specified file,
Warnings. Warn (' Error checking the compiler version for {}, {} '. The format (compiler, the Error))
Building 'model. _C extension
Creating the build \ temp. Win - amd64-3.6
Creating the build \ temp. Win - amd64-3.6 \ Release
Creating the build \ temp. Win - amd64-3.6 \ Release \ fsater - RCNN
Creating the build \ temp. Win - amd64-3.6 \ Release \ fsater - RCNN \ faster - - RCNN pytorch pytorch - 1.0
Creating the build \ temp. Win - amd64-3.6 \ Release \ fsater - RCNN \ faster - - RCNN pytorch pytorch - 1.0 \ lib
Creating the build \ temp. Win - amd64-3.6 \ Release \ fsater - RCNN \ faster - - RCNN pytorch pytorch - 1.0 \ lib \ model
Creating the build \ temp. Win - amd64-3.6 \ Release \ fsater - RCNN \ faster - - RCNN pytorch pytorch - 1.0 \ lib \ model \ CSRC
Creating the build \ temp. Win - amd64-3.6 \ Release \ fsater - RCNN \ faster - - RCNN pytorch pytorch - 1.0 \ lib \ model \ \ CSRC CPU
Creating the build \ temp. Win - amd64-3.6 \ Release \ fsater - RCNN \ faster - - RCNN pytorch pytorch - 1.0 \ lib \ model \ \ cuda CSRC
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe/c/nologo/Ox/W3/GL/DNDEBUG/MD -DWITH_CUDA -IG:\fsater-rcnn\faster-rcnn.pytorch-pytorch-1.0\lib\model\csrc -IC:\Users\Qjc\Anaconda3\envs\pytorch1.0\lib\site-packages\torch\lib\include -IC:\Users\Qjc\Anaconda3\envs\pytorch1.0\lib\site-packages\torch\lib\include\torch\csrc\api\include -IC:\Users\Qjc\Anaconda3\envs\pytorch1.0\lib\site-packages\torch\lib\include\TH -IC:\Users\Qjc\Anaconda3\envs\pytorch1.0\lib\site-packages\torch\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" -IC:\Users\Qjc\Anaconda3\envs\pytorch1.0\include -IC:\Users\Qjc\Anaconda3\envs\pytorch1.0\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt"/EHsc/TpG:\fsater-rcnn\faster-rcnn.pytorch-pytorch-1.0\lib\model\csrc\vision.cpp/Fobuild\temp.win-amd64-3.6\Release\fsater-rcnn\faster-rcnn.pytorch-pytorch-1.0\lib\model\csrc\vision.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
Vision. CPP
Error is quite long, I'm a little look not to understand, hope to have a big show, beg the

CodePudding user response:

Use "GBK" not default "utf-8" in cpp_extension. Py
  • Related