longcw / RoIAlign.pytorch

RoIAlign & crop_and_resize for PyTorch
555 stars 103 forks source link

fail to install in window10 #31

Open NaifahNurya opened 5 years ago

NaifahNurya commented 5 years ago

Thank you for the RoIAlign for pytorch.

When i try to install in window 10, with pytorch 1.0 it fails with the following errors.

1) lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))

2) c1xx: fatal error C1083: Cannot open source file: 'roi_align/src/crop_and_resize.cpp': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe' failed with exit status 2

How can I solve this?