Tramac / awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Apache License 2.0
2.82k stars 581 forks source link

怎么才能在windows下安装? #70

Open xixilidehuoshan opened 4 years ago

xixilidehuoshan commented 4 years ago

(pytorch) D:\awesome-semantic-segmentation-pytorch-master\core\nn>python setup.py build develop running build running build_ext D:\Anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building '._C' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -ID:\awesome-semantic-segmentation-pytorch-master\core\nn\csrc -ID:\Anaconda3\envs\pytorch\lib\site-packages\torch\lib\include -ID:\Anaconda3\envs\pytorch\lib\site-packages\torch\lib\include\torch\csrc\api\include -ID:\Anaconda3\envs\pytorch\lib\site-packages\torch\lib\include\TH -ID:\Anaconda3\envs\pytorch\lib\site-packages\torch\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include" -ID:\Anaconda3\envs\pytorch\include -ID:\Anaconda3\envs\pytorch\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\include" /EHsc /TpD:\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.cpp /Fobuild\temp.win-amd64-3.6\Release\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 vision.cpp C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\include\cstddef(7): fatal error C1083: 无法打开包括文件: “stddef.h”: No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\cl.exe' failed with exit status 2

sainatarajan commented 4 years ago

Install Microsoft Visual C++ build tools.

a9311072 commented 4 years ago

@sainatarajan does it have further steps for the VC++ build? I have no idea after installing the VC++ build

sainatarajan commented 4 years ago

@a9311072 There are no steps after installing the Visual C++ latest build tools. Please follow the instructions one by one mentioned in the readme of this repo after installing the build tools. The Visual C++ build tools are > 3 GB I think. Did you install it properly?

a9311072 commented 4 years ago

I tried it but it did not work. I will try to install again to build the Setup.py. Thanks for the information.