-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Pytorch Installation Error Contradiction #1659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@bottler tagging here. |
This is something very basic going wrong with the compiler. It doesn't understand Maybe just maybe it thinks some file is C not C++, so maybe you could try adding |
It is also not because of the version of C++17, I see that C++17 should have here: https://en.cppreference.com/w/cpp/header/functional |
found a relevant issue answered by VS https://developercommunity.visualstudio.com/t/Visual-Studio-2022-172-C-functional-h/10036384 |
can you just build the binary for windows x64? It is so hard to build pytorch3d |
why not install the binary by pip |
Are you using a release of Visual Studio newer than microsoft's comment there in Aug 2022? It should just work if you are, right? |
Hi, I've just upgraded my VS2022, and it works! |
Uh oh!
There was an error while loading. Please reload this page.
🐛 Bugs / Unexpected behaviors
Hi, I am struggling to install pytorch3d on Windows 11 and have followed the issues for past few days.
It's a windows 11 machine with 3070Ti card , Pytorch 2.0.1 , Visual studio 2019 with redistributable and build tools. x64 machine. Cuda 11.8 , Pytorch_Cuda Version = 11.8
Below is the error:
""C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\rp247\rp-repo\pytorch3d\pytorch3d\csrc -IC:\Users\rp247.conda\envs\pytorch3d\lib\site-packages\torch\include -IC:\Users\rp247.conda\envs\pytorch3d\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\rp247.conda\envs\pytorch3d\lib\site-packages\torch\include\TH -IC:\Users\rp247.conda\envs\pytorch3d\lib\site-packages\torch\include\THC -IC:\Users\rp247.conda\envs\pytorch3d\include -IC:\Users\rp247.conda\envs\pytorch3d\Include "-I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" -I" "-I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt" -I" /EHsc /TpC:\Users\rp247\rp-repo\pytorch3d\pytorch3d\csrc\ball_query\ball_query_cpu.cpp /Fobuild\temp.win-amd64-cpython-39\Release\Users\rp247\rp-repo\pytorch3d\pytorch3d\csrc\ball_query\ball_query_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17
ball_query_cpu.cpp
C:\Users\rp247.conda\envs\pytorch3d\lib\site-packages\torch\include\c10/core/DeviceType.h(10): fatal error C1083: Cannot open include file: 'functional': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe' failed with exit code 2"
I am installing the files in x64 Native Tools in admin mode and have followed the steps in #1227 to remove "c++14" with "[]" .
On entering "cl" in cmd:
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30152 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
"where cl " command gives "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe".
I am suspecting I need to edit the "ball_query"code somehow. Can you please recommend the solution? I have reinstalled and removed most of the softwares.
The text was updated successfully, but these errors were encountered: