Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Windows installation #23

Open
YaroslavShchekaturov opened this issue Nov 29, 2021 · 0 comments
Open

Windows installation #23

YaroslavShchekaturov opened this issue Nov 29, 2021 · 0 comments

Comments

@YaroslavShchekaturov
Copy link

Hi there!
I'm trying to install SVS on Windows 10 using python setup.py build_ext --inplace but got the following error

(det38) C:\Users\Admin\StableViewSynthesis\ext\mytorch>python setup.py build_ext --inplace
generate generated\map_to_list_nn_cpu.cpp
generate generated\map_to_list_nn_cuda.cpp
generate generated\map_to_list_nn_kernel.cu
generate generated\map_to_list_bl_cpu.cpp
generate generated\map_to_list_bl_cuda.cpp
generate generated\map_to_list_bl_kernel.cu
generate generated\map_to_list_bl_seq_cpu.cpp
generate generated\map_to_list_bl_seq_cuda.cpp
generate generated\map_to_list_bl_seq_kernel.cu
generate generated\list_to_map_cpu.cpp
generate generated\list_to_map_cuda.cpp
generate generated\list_to_map_kernel.cu
generate generated\ext_cpu.cpp
generate generated\ext_cuda.cpp
generate generated\ext_kernel.cu
generate generated_ext.py
running build_ext
C:\Users\Admin\anaconda3\envs\det38\lib\site-packages\torch\utils\cpp_extension.py:305: UserWarning: Error checking compiler version for cl: [WinError 2] Не удается найти указанный файл
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'ext_cpu' extension
Emitting ninja build file C:\Users\Admin\StableViewSynthesis\ext\mytorch\build\temp.win-amd64-3.8\Release\build.ninja...Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.30.30423\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Admin\anaconda3\envs\det38\lib\site-packages\torch\lib /LIBPATH:C:\Users\Admin\anaconda3\envs\det38\libs /LIBPATH:C:\Users\Admin\anaconda3\envs\det38\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.30.30423\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.30.30423\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib /EXPORT:PyInit_ext_cpu C:\Users\Admin\StableViewSynthesis\ext\mytorch\build\temp.win-amd64-3.8\Release\ext_cpu.obj /OUT:build\lib.win-amd64-3.8\ext_cpu.cp38-win_amd64.pyd /IMPLIB:C:\Users\Admin\StableViewSynthesis\ext\mytorch\build\temp.win-amd64-3.8\Release\ext_cpu.cp38-win_amd64.lib
Создается библиотека C:\Users\Admin\StableViewSynthesis\ext\mytorch\build\temp.win-amd64-3.8\Release\ext_cpu.cp38-win_amd64.lib и объект C:\Users\Admin\StableViewSynthesis\ext\mytorch\build\temp.win-amd64-3.8\Release\ext_cpu.cp38-win_amd64.exp
ext_cpu.obj : error LNK2001: неразрешенный внешний символ "public: long * __cdecl at::Tensor::data_ptr(void)const " (??$data_ptr@J@Tensor@at@@QEBAPEAJXZ).
build\lib.win-amd64-3.8\ext_cpu.cp38-win_amd64.pyd : fatal error LNK1120: неразрешенных внешних элементов: 1
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.30.30423\bin\HostX86\x64\link.exe' failed with exit status 1120

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant