awesome-semantic-segmentation-pytorch icon indicating copy to clipboard operation
awesome-semantic-segmentation-pytorch copied to clipboard

怎么才能在windows下安装?

Open xixilidehuoshan opened this issue 5 years ago • 4 comments

(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

xixilidehuoshan avatar Sep 11 '19 01:09 xixilidehuoshan

Install Microsoft Visual C++ build tools.

sainatarajan avatar Oct 12 '19 17:10 sainatarajan

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

a9311072 avatar Oct 24 '19 07:10 a9311072

@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?

sainatarajan avatar Oct 24 '19 07:10 sainatarajan

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

a9311072 avatar Nov 02 '19 13:11 a9311072