You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to install pytorch3d in pychamp using an environment, I managed to install all of the requirements including gcc, CUDA and Microsoft Visual Studio but I was unable because of this error:
nvcc fatal : cl.exe in PATH (C:/Users/USER/mingw64/bin) is different than one specified with -ccbin (C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.42.34433/bin/HostX86/x64)
I noticed that the problem has to do with MinGW-W64-binaries, I installed on my windows machine and added the path as described in the tutorials, when you try to install pytorch3d, this error pops.
I tried to fix it by changing the environment variable to the Visual Studio Path but then I get a different error:
nvcc fatal : Cannot find compiler 'gcc' in PATH
This means that the environment variable PATH, is used for both gcc and cl.exe. it finds the gcc but it cannot find the cl.exe file which is available in Visual studio in a different path. When I fix this (by removing the C:/Users/USER/mingw64/bin) , then it cannot find gcc.
🐛 Bugs / Unexpected behaviors
I am trying to install pytorch3d in pychamp using an environment, I managed to install all of the requirements including gcc, CUDA and Microsoft Visual Studio but I was unable because of this error:
nvcc fatal : cl.exe in PATH (C:/Users/USER/mingw64/bin) is different than one specified with -ccbin (C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.42.34433/bin/HostX86/x64)
I noticed that the problem has to do with MinGW-W64-binaries, I installed on my windows machine and added the path as described in the tutorials, when you try to install pytorch3d, this error pops.
I tried to fix it by changing the environment variable to the Visual Studio Path but then I get a different error:
nvcc fatal : Cannot find compiler 'gcc' in PATH
This means that the environment variable PATH, is used for both gcc and cl.exe. it finds the gcc but it cannot find the cl.exe file which is available in Visual studio in a different path. When I fix this (by removing the C:/Users/USER/mingw64/bin) , then it cannot find gcc.
Instructions To Reproduce the Issue:
1 - Install https://github.com/niXman/mingw-builds-binaries
2 - Add the path of the install to the environment variable
PATH = C:/Users/USER/mingw64/bin
3 - Install Microsoft Visual studio
4 - Install pytorch3d
The exact command(s) you ran:
pip install "git+https://github.com/facebookresearch/pytorch3d.git"
The text was updated successfully, but these errors were encountered: