环境
python3.7 CUDA10.0 torch1.5
输入python setup.py build develop后
pycharm运行结果及报错内容
(pytorch) D:\PyCharm\MyProjects\JCCL\models\DCNv2>python setup.py build develop
running build
running build_ext
building '_ext' extension
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cpu
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cuda
Emitting ninja build file D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.2
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\lib.win-amd64-3.7
D:\Microsoft Visual Studio2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\anaconda3.7\envs\pyto
rch\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib/x64" /LIBPATH:D:\anaconda3.7\envs\pytorch\libs /LIBPATH:D:\anaconda3.7\envs\pytorch\
PCbuild\amd64 "/LIBPATH:D:\Microsoft Visual Studio2017\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:D:\Microsoft Visual Studio2017\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\P
rogram Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib
\10.0.17763.0\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit__ext D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-am
d64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\vision.obj D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cpu\d
cn_v2_cpu.obj D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cuda\dcn_v2_cuda.obj D:\PyCharm\MyProjects\JCCL\models\DCNv
2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cuda\dcn_v2_im2col_cuda.obj D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\My
Projects\JCCL\models\DCNv2\src\cuda\dcn_v2_psroi_pooling_cuda.obj /OUT:build\lib.win-amd64-3.7\_ext.cp37-win_amd64.pyd /IMPLIB:D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64
-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\_ext.cp37-win_amd64.lib
LINK : fatal error LNK1181: 无法打开输入文件“D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\vision.obj”
error: command 'D:\\Microsoft Visual Studio2017\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181